baidu练习/html/css

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>百度一下,你就知道</title>
<link rel="icon" href="baidu.png">
<link href="baidu1.css" rel="stylesheet">
</head>
<body id="body1">
<!--标题部分-->
<div class="center-box" >
<div class="show-weather">
<span class="show-city">
<em class="city-name">扬州 :
</em>
</span>
<span class="show-weather-icon" >
<em class="temp">16℃
</em>
</span>
<span class="weather-now">重度
</span>
<span class="weather-now1">286
</span>
<span class="title">|
</span>
<span class="title1">换肤
</span>
<span class="title2">消息
</span>
</div>
</div>
<div class="title-right">
<a class="muav">新闻</a>
<a class="muav">hao123</a>
<a class="muav">地图</a>
<a class="muav">视频</a>
<a class="muav">贴吧</a>
<a class="muav">学术</a>
<a class="muav">pandaboy1123</a>
<a class="muav">设置</a>
<a class="more">更多产品</a>
</div>
<!--标题部分-->
<!--搜索引擎部分-->
<div class="background" > </div>
<div id="lg">
<img class="logo" src="superlogo.png">
</div>
<span id="warp">
<input class="text" value="百度一下">
</span>





</body>
</html>


#####################################################################################################
#body1{
margin: 0px;
}
.center-box{
position: relative;
1380px;
height: 32px;
text-align: center;
/*color: black;*/
background-color: rgb(153,153,153);
display: block;
cursor: default;
font-size: 12px;
font-style: normal;
margin: 0px;

}
.show-weather{
250px;
height: 34px;
margin: 0px;
position: absolute;
left: 40px;
}
.city-name{
font-family: "Microsoft YaHei UI";
font-size: 12px;
color: white;
line-height: 35px;
font-style: normal;
position: relative;
left: -55px;
}
.show-weather-icon{
display: inline-block;
background-image: url("night.png");
line-height: 35px;
font-style: normal;
position: relative;
18px;
height: 18px;
color: white;
margin: 0px;
left: -50px;
bottom: -8px;
font-size: 12px;
/*left: -40px;*/
}
.temp{
display: inline-block;
position: relative;
height: 20px;
line-height: 20px;
margin: 0px;
left: 26px;
top: -8px;
font-family: "Microsoft YaHei UI";
font-style: normal;
}
.weather-now{
display: inline-block;
position: relative;
height: 20px;
/*line-height: 20px;*/
margin: 0px;
font-family: "Microsoft YaHei UI";
color: rgb(255,126,0);
left: -12px;
font-weight: bold;

}
.weather-now1{
display: inline-block;
position: relative;
height: 20px;
/*line-height: 20px;*/
margin: 0px;
font-family: "Microsoft YaHei UI";
color: white;
left: -12px;
}
.title{
color: white;
position: relative;
left: -10px;
}
.title1{
color: white;
text-decoration: underline;
display: inline-block;
30px;
}
.title2{
color: white;
text-decoration: underline;
display: inline-block;
30px;
}
.title-right{
/*color: rgb(153,153,153);*/
color: black;
display: block;
position: absolute;
590px;
height: 32px;
z-index: 500;
font-size: 13px;
right: 0px;
top: 0px;
}
.muav{
display: inline-block;
color: white;
cursor: auto;
font-family: "Microsoft YaHei UI";
font-size: 13px;
font-style: normal;
font-variant: normal;
font-weight: bold;
height: 32px;
line-height: 32px;
margin-left: 19px;
outline-color: white;
outline-style: none;
outline- 0px;
position: relative;
text-align: right;
text-decoration: underline;
text-shadow: none;

}
.more{
background-attachment: scroll;
background-clip: border-box;
background-color: rgb(57,139,251);
background-image: none;
background-origin: padding-box;
background-size: auto;
border-bottom-color: rgb(57,139,251);
border-bottom-style: solid;
border-bottom- 1px;
color: white;
cursor: auto;
display: inline-block;
font-family: "Microsoft YaHei UI";
font-size: 13px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 31px;
line-height: 32px;
/*margin-left: 19px;*/
margin-top: 0px;
outline-color: white;
outline- 0px;
overflow-x: hidden;
overflow-y: hidden;
position: relative;
text-align: center;
text-decoration: none;
text-shadow: none;
vertical-align: top;
76px;
zoom: 1;
float: right;
}

#lg{
color: black;
cursor: default;
display: block;
font-family: "Microsoft YaHei UI";
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 181.297px;
641px;
line-height: normal;
min-height: 181px;
z-index: 0;
position: relative;
text-align: center;

}
.logo{
border-bottom-color: black;
border-bottom-style: none;
border-bottom- 0;
border-image-outset: 0;
border-image-repeat:stretch;
border-image-slice: 100%;
border-image-source: none;
border-image- 1;
border-left-color: black;
border-left-style: none;
border-left- 0px;
border-right-color: black;
border-right-style: none;
border-right- 0px;
border-top-color: black;
border-top-style: none;
border-top- 0px;
top: 80px;
color: black;
cursor: default;
font-family: "Microsoft YaHei UI";
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 129px;
left: 320.5px;
line-height: normal;
margin-left: 200px;
margin-top: -684px;
position: absolute;
text-align: center;
270px;
}

.text{
background-color: white;
background-image: none;
border-bottom-color: black;
border-bottom-style: none;
border-bottom- 0;
border-image-outset: 0;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image- 1;
border-left-color: black;
border-left-style: none;
border-left- 0;
border-right-color: black;
border-right-style: none;
border-right- 0;
border-top-color: black;
border-top-style: none;
border-top- 0;
box-shadow: rgba(0,0,0,0.2);
color: black;
cursor: auto;
display: inline-block;
font-family: "Microsoft YaHei UI";
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 20px;
letter-spacing: normal;
line-height: 20px;
margin: 0px;
outline-color: black;
480px;
padding-bottom: 10px;
padding-left: 7px;
padding-right: 50px;
padding-top: 10px;
margin-left: 200px;
z-index: 0;
text-align: center;

}
/*.background{*/
/**/
/*background-image: url("https://ss3.bdstatic.com/iPoZeXSm1A5BphGlnYG/skin/726.jpg?2");*/
/*background-position: 50% 0px;*/
/*background-repeat: no-repeat;*/
/*background-size: cover;*/
/*color: black;*/
/*cursor: default;*/
/*display: block;*/
/*font-family: "Microsoft YaHei UI";*/
/*font-size: 12px;*/
/*font-style: normal;*/
/*font-variant: normal;*/
/*font-weight: normal;*/
/*height: 626px;*/
/*left: 0px;*/
/*position: relative;*/
/*z-index: -1;*/
/*}*/
#warp{
color: black;
cursor: default;
display: block;
font-family: "Microsoft YaHei UI";
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 40px;
547px;
line-height: normal;
min-height: 0;
z-index: 0;
position: relative;
text-align: center;

}
Win a contest, win a challenge
原文地址:https://www.cnblogs.com/pandaboy1123/p/8680718.html