做html网页时,公共部分的代码,求样例
答案:1 悬赏:70 手机版
解决时间 2021-04-06 19:52
- 提问者网友:你挡着我发光了
- 2021-04-05 21:32
做html网页时,公共部分的代码,求样例
最佳答案
- 五星知识达人网友:duile
- 2021-04-05 22:18
是这样吗
body,div,dl,dd,dt,ul,li,h1,h2,h3,h4,h5,h6,input,form,a,p,textarea{
margin:0px;
padding:0px;
}
ol,ul,li{
list-style:none;
}
a{
text-decoration: none;
display: block;
color:#fff;
}
img{
border:none;
display: block;
}
.clearfloat{
zoom:1;
}
.clearfloat:after{
display: block;
clear:both;
content:"";
visibility:hidden;
height:0;
}
还是这个
.public-container{
position:relative;
width:1100px;
margin:0 auto;
}
.public-header .header-logo{
float:left;
background-image: url("../images/logo.png");
margin-top:40px;
}
.public-header .header-logo a{
width:182px;
height:54px;
}
.public-header .header-nav{
float:right;
margin-top:44px;
}
.public-header .header-nav .item{
float:left;
margin-left:50px;
}
.public-header .header-nav a {
color: #3b3b3b;
}
.public-header .header-nav a:hover{
text-decoration: underline;
}
.public-footer{
height:218px;
background-color: #3b3b3b;
padding-top:100px;
}
.public-footer .footer-col{
width:230px;
float:left;
margin-right:60px;
font-size:16px;
color:#fff;
lineheight:1.8;
}
.public-footer .footer-col:last-child{
margin-right:0px;
}
.public-footer .footer-logo{
width:182px;
height:54px;
margin-top:-10px;
margin-bottom:10px;
background-image: url("../images/logo-white.png");
}
body,div,dl,dd,dt,ul,li,h1,h2,h3,h4,h5,h6,input,form,a,p,textarea{
margin:0px;
padding:0px;
}
ol,ul,li{
list-style:none;
}
a{
text-decoration: none;
display: block;
color:#fff;
}
img{
border:none;
display: block;
}
.clearfloat{
zoom:1;
}
.clearfloat:after{
display: block;
clear:both;
content:"";
visibility:hidden;
height:0;
}
还是这个
.public-container{
position:relative;
width:1100px;
margin:0 auto;
}
.public-header .header-logo{
float:left;
background-image: url("../images/logo.png");
margin-top:40px;
}
.public-header .header-logo a{
width:182px;
height:54px;
}
.public-header .header-nav{
float:right;
margin-top:44px;
}
.public-header .header-nav .item{
float:left;
margin-left:50px;
}
.public-header .header-nav a {
color: #3b3b3b;
}
.public-header .header-nav a:hover{
text-decoration: underline;
}
.public-footer{
height:218px;
background-color: #3b3b3b;
padding-top:100px;
}
.public-footer .footer-col{
width:230px;
float:left;
margin-right:60px;
font-size:16px;
color:#fff;
lineheight:1.8;
}
.public-footer .footer-col:last-child{
margin-right:0px;
}
.public-footer .footer-logo{
width:182px;
height:54px;
margin-top:-10px;
margin-bottom:10px;
background-image: url("../images/logo-white.png");
}
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯