自己摸爬滚打做了一天,特别是被margin,padding,border折磨得欲仙欲死的时候,我也没放弃,还是做完了,在各位大佬看来可能跟老太婆的裹脚布一样又臭又长,但我会继续努力的。如果有人能指出一些建议就更好了
仿百度首页
*{
padding: 0;
margin: 0;
}
body{
text-align: center;
}
.header{
margin-top: 10px;
height: 5px;
width: 100%;
}
.left{
text-align: left;
display: inline-block;
width: 20%;
float: left;
}
.right{
width: 80%;
text-align: right;
display: inline-block;
float: right;
}
a{
margin: 8px;
}
.mainbody{
margin-top: 50px;
height: 500px;
width: 100%;
}
img{
padding-top: 0;
height: 129px;
width: 270px;
}
.search{
left: 25%;
position: absolute;
display: block;
width: 1000px;
}
#inputk{
display: inline;
position: relative;
width: 500px;
height: 38px;
margin-top: 20px;
float: left;
border: 1px solid gray;
font-size: 16px;
}
#inputk:hover{
border: 1px solid #3388FF;
}
#btn{
width: 100px;
height: 40px;
display: inline;
color: #fff;
border: none;
outline: none;
cursor: pointer;
font-size: 16px;
margin-top: 20px;
background-color: #3388FF;
float: left;
}
1元夺宝
糯米
新闻
hao123
地图
视频
贴吧
版权所有@编程界的的一股清流
©2016 Baidu



