admin管理员组

文章数量:1037775

【HTML——网页布局】蓝桥知识网(蓝桥杯真题

背景介绍

蓝桥为了帮助大家学习,开发了一个知识汇总网站,现在想设计一个简单美观的首页。本题请根据要求来完成一个首页布局。


准备步骤

开始答题前,需要先打开本题的项目代码文件夹,目录结构如下:

代码语言:javascript代码运行次数:0运行复制
├── css
│   └── style.css
├── data.txt
├── index.html
└── mark.png

其中:

  • css/style.css 是样式文件。
  • data.txt 是页面数据文件。
  • index.html 是主页面。
  • mark.png 是页面参数标注图。

注意:打开环境后发现缺少项目代码,请手动键入下述命令进行下载:

代码语言:javascript代码运行次数:0运行复制
cd /home/project
wget .zip && unzip 06.zip && rm 06.zip

目标效果

请根据 mark.png 图片上的参数标注,补充 css/style.cssindex.html 文件中的代码。对于 mark.png 上未标注的参数,请结合效果图自行调整。 页面版心宽度为 1024px,请保证版心居中,让页面呈现如下图所示的效果: 请根据 mark.png 图片上的参数标注,补充 css/style.cssindex.html 文件中的代码。对于 mark.png 上未标注的参数,请结合效果图自行调整。 页面版心宽度为 1024px,请保证版心居中,让页面呈现如下图所示的效果:

页面数据在 data.txt 文件中,直接复制即可。


要求规定

  • 请勿自定义页面数据,必须使用 data.txt 所提供的页面数据。
  • 请严格按照考试步骤操作,切勿修改考试默认提供项目中的文件名称、文件夹路径等,以免造成无法判题通过。

判分标准

  • 本题根据页面布局的相似度给分,低于 50% 得 0 分,高于 50% 则按比例给分。

通关代码✔️

代码语言:javascript代码运行次数:0运行复制
/*
 TODO:请补充代码
*/
.one{
    background-color: #a6b1e1;
    height: 486px;
    display: flex;
    justify-content: center;
}
#one{
    width: 1024px;
    /* border: 1px gray solid; */
}
nav{
    margin-top: 13px;
    height: 46px;
    /* border: 1px gray solid; */
}
nav ul{
    /* border: 1px red solid; */
    display: flex;
    color: white;
    /* gap:16px; */

}
nav ul li:first-child{
    /* border: 1px gray solid; */
    font-size: 18px;
    margin-right: 365px;
}
nav ul li:nth-child(n+2){
    font-size: 16px;
    margin-right: 16px;
}
.tit div{
    font-size: 45px;
    color: black;
    /* border: 1px gray solid; */
}
.tit{
    /* border: 1px gray solid; */
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.des div{
    font-size: 21px;
    color: white;
    font-weight: 200;
    /* border: 1px gray solid; */
}
.des{
    /* border: 1px gray solid; */
    display: flex;
    justify-content: center;
    margin-top: 62px;
}
button{
    background-color: transparent;
    box-shadow: inset 0 0 0 2px #efbfbf;
    border: #efbfbf 0.1px solid;
    border-radius: 2px;
}
button div{
    font-size: 18px;
    background-color: transparent;
    color: #efbfbf;

    padding: 10px;
    /* box-shadow: inset 0 0 0 2px #efbfbf; */
}
.join{
    display: flex;
    justify-content: center;
    margin-top: 36px;
    /* border: 1px gray solid;  */
}
.two{
    /* border: 1px red solid;  */
    height: 376px;
    display: flex;
    justify-content: center;
}

#two{
    margin-top: 74px;
    width: 1024px;
    /* border: 1px gray solid;  */
}

table{
    height: 144px;
}

th{
    font-size: 30px;
    color: black;
    font-weight: 200;
    text-align: left;
}
td{
    font-size: 18px;
    color: #aaa;
    line-height: 1.4em;
    width: 502px;
    vertical-align: top;
}
tbody tr td:first-child{
    padding-right: 20px;
}
footer{
    height: 80px;
    border-top: 1px #aaa solid;
    display: flex;
    justify-content: center; 

}
#three{
    width: 1024px;
}
.z1 div{
    font-size: 14px;
    color: #aaa;
}
.z1{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.z2 div{
    font-size: 14px;
    color: #aaa;
}
.z2{
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

代码解析

【HTML——网页布局】蓝桥知识网(蓝桥杯真题

背景介绍

蓝桥为了帮助大家学习,开发了一个知识汇总网站,现在想设计一个简单美观的首页。本题请根据要求来完成一个首页布局。


准备步骤

开始答题前,需要先打开本题的项目代码文件夹,目录结构如下:

代码语言:javascript代码运行次数:0运行复制
├── css
│   └── style.css
├── data.txt
├── index.html
└── mark.png

其中:

  • css/style.css 是样式文件。
  • data.txt 是页面数据文件。
  • index.html 是主页面。
  • mark.png 是页面参数标注图。

注意:打开环境后发现缺少项目代码,请手动键入下述命令进行下载:

代码语言:javascript代码运行次数:0运行复制
cd /home/project
wget .zip && unzip 06.zip && rm 06.zip

目标效果

请根据 mark.png 图片上的参数标注,补充 css/style.cssindex.html 文件中的代码。对于 mark.png 上未标注的参数,请结合效果图自行调整。 页面版心宽度为 1024px,请保证版心居中,让页面呈现如下图所示的效果: 请根据 mark.png 图片上的参数标注,补充 css/style.cssindex.html 文件中的代码。对于 mark.png 上未标注的参数,请结合效果图自行调整。 页面版心宽度为 1024px,请保证版心居中,让页面呈现如下图所示的效果:

页面数据在 data.txt 文件中,直接复制即可。


要求规定

  • 请勿自定义页面数据,必须使用 data.txt 所提供的页面数据。
  • 请严格按照考试步骤操作,切勿修改考试默认提供项目中的文件名称、文件夹路径等,以免造成无法判题通过。

判分标准

  • 本题根据页面布局的相似度给分,低于 50% 得 0 分,高于 50% 则按比例给分。

通关代码✔️

代码语言:javascript代码运行次数:0运行复制
/*
 TODO:请补充代码
*/
.one{
    background-color: #a6b1e1;
    height: 486px;
    display: flex;
    justify-content: center;
}
#one{
    width: 1024px;
    /* border: 1px gray solid; */
}
nav{
    margin-top: 13px;
    height: 46px;
    /* border: 1px gray solid; */
}
nav ul{
    /* border: 1px red solid; */
    display: flex;
    color: white;
    /* gap:16px; */

}
nav ul li:first-child{
    /* border: 1px gray solid; */
    font-size: 18px;
    margin-right: 365px;
}
nav ul li:nth-child(n+2){
    font-size: 16px;
    margin-right: 16px;
}
.tit div{
    font-size: 45px;
    color: black;
    /* border: 1px gray solid; */
}
.tit{
    /* border: 1px gray solid; */
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.des div{
    font-size: 21px;
    color: white;
    font-weight: 200;
    /* border: 1px gray solid; */
}
.des{
    /* border: 1px gray solid; */
    display: flex;
    justify-content: center;
    margin-top: 62px;
}
button{
    background-color: transparent;
    box-shadow: inset 0 0 0 2px #efbfbf;
    border: #efbfbf 0.1px solid;
    border-radius: 2px;
}
button div{
    font-size: 18px;
    background-color: transparent;
    color: #efbfbf;

    padding: 10px;
    /* box-shadow: inset 0 0 0 2px #efbfbf; */
}
.join{
    display: flex;
    justify-content: center;
    margin-top: 36px;
    /* border: 1px gray solid;  */
}
.two{
    /* border: 1px red solid;  */
    height: 376px;
    display: flex;
    justify-content: center;
}

#two{
    margin-top: 74px;
    width: 1024px;
    /* border: 1px gray solid;  */
}

table{
    height: 144px;
}

th{
    font-size: 30px;
    color: black;
    font-weight: 200;
    text-align: left;
}
td{
    font-size: 18px;
    color: #aaa;
    line-height: 1.4em;
    width: 502px;
    vertical-align: top;
}
tbody tr td:first-child{
    padding-right: 20px;
}
footer{
    height: 80px;
    border-top: 1px #aaa solid;
    display: flex;
    justify-content: center; 

}
#three{
    width: 1024px;
}
.z1 div{
    font-size: 14px;
    color: #aaa;
}
.z1{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.z2 div{
    font-size: 14px;
    color: #aaa;
}
.z2{
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

代码解析

本文标签: HTML网页布局蓝桥知识网(蓝桥杯真题