1 Star 0 Fork 0

luzhen/html5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
basic.css 4.62 KB
一键复制 编辑 原始数据 按行查看 历史
luzhen 提交于 2020-03-29 20:17 . 网页实践项目作业
@charset "utf-8";
body,h1,h2,h3,ul,p,figure{
margin: 0;
padding: 0;
}
a{
text-decoration: none;
}
ul{
list-style: none outside none;
}
#header{
width: 100%;
min-width: 1263px;
height: 70px;
background-color: #333;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
position: relative;
z-index: 999;
}
#header .center{
width: 1263px;
height: 70px;
/* background-color: red; */
margin: 0 auto;
}
#header .logo{
width: 240px;
height: 70px;
/* background-color: white; */
background-image: url('./logo.png');
text-indent: -9999px;
float: left;
}
#header .link{
/* background-color: red; */
color: #eee;
height: 70px;
line-height: 70px;
float: right;
width: 650px;
}
#header .link li{
width: 120px;
text-align: center;
float: left;
}
#header .link a{
color: #eee;
/* background-color: red; */
display: block;
}
#header .link a:hover,
#header .active a{
background-color: #000;
}
.none{
display: none;
}
#search{
/* width: 1960px; */
width: 100%;
min-width: 1263px;
height: 600px;
background: url(./search.jpg) no-repeat center;
position: relative;
}
#search .center{
width: 600px;
/* width: 480px; */
height: 60px;
background-color: #000;
position: absolute;
top: 50%;
left: 50%;
margin: -30px 0 0 -300px;
/* margin: -27px 0 0 -240px; */
opacity: 0.6;
border-radius: 10px;
}
#search .search{
width: 446px;
height: 54px;
background-color: #eee;
position: absolute;
top: 50%;
left: 50%;
margin: -27px 0 0 -296px;
color: #666;
border: 1px solid #666;
border-radius: 10px;
font-size: 24px;
padding: 0 10px;
outline: none;
}
#search .button{
width: 120px;
height: 54px;
background-color: #eee;
position: absolute;
top: 50%;
left: 50%;
/* margin: -27 0 0 -60px; */
margin: -27px 0 0 175px;
color: #666;
border: 1px solid #666;
border-radius: 10px;
font-size: 24px;
outline: none;
cursor: pointer;
font-weight: bold;
}
#tour{
width: 1263px;
height: 1150px;
margin: 0px auto;
/* color: #eee; */
/* background-color: #eee; */
margin: 30px auto;
text-align: center;
}
/* #tour .center{
text-align: center;
} */
#tour .center h2{
font-size: 45px;
letter-spacing: 2px;
color: #666;
margin: 10px 0;
}
#tour .center p{
color: #666;
margin: 10px 0;
}
#tour figure{
border: 1px solid #ddd;
display: inline-block;
padding: 4px;
border-radius: 4px;
margin: 15px 12px;
width: 380px;
text-align: left;
position: relative;
}
#tour figure img{
vertical-align: middle;
}
#tour figure figcaption{
color: #777;
font-size: 14px;
letter-spacing: 2px;
line-height: 1.5;
letter-spacing: 1px;
font-size: 14px;
}
#tour .title{
color: #333;
font-weight: normal;
}
#tour .sat{
float: right;
font-size: 13px;
color: #999;
font-style: normal;
position: relative;
top: 5px;
right: 5px;
/* background-color: red; */
}
#tour .price{
color: #f60;
}
#tour .price strong{
font-size: 20px;
letter-spacing: 1px;
}
#tour .type{
width: 90px;
height: 25px;
line-height: 25px;
text-align: center;
font-size: 14px;
color: #fff;
background-color: #59b200;
position: absolute;
top: 4px;
left: 4px;
}
#footer{
height: 360px;
background-color: #222;
clear: both;
position: relative;
top: 20px;
}
#footer .top{
width: 1263px;
height: 280px;
background-color: #222;
margin: 0 auto;
text-align: center;
}
#footer .block{
width: 410px;
height: 280px;
/* background-color: blue; */
display: inline-block;
text-align-last: left;
color: #ccc;
vertical-align: top;
}
#footer h2{
font-size: 24px;
font-weight: normal;
padding: 20px 0 0 20px;
}
#footer hr{
width: 90%;
border: 1px dashed #333;
}
#footer ul{
font-size: 18px;
color: #777;
text-indent: 20px;
line-height: 2;
}
/* #footer .left{
width: 410px;
height: 280px;
background-color: blue;
display: inline-block;
text-align-last: left;
}
#footer .center{
width: 410px;
height: 280px;
background-color: green;
display: inline-block;
text-align-last: left;
}
#footer .right{
width: 410px;
height: 280px;
background-color: yellow;
display: inline-block;
text-align-last: left;
} */
#footer .bottom{
height: 80px;
background-color: #000;
height: 80;
line-height: 80px;
text-align: center;
color: #777;
border-top: 1px solid #444;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lu_zhen17060060/html5.git
git@gitee.com:lu_zhen17060060/html5.git
lu_zhen17060060
html5
html5
master

搜索帮助