刚学习css不久,做练习题,这里不知道为什么,设置高度为35px,一直不生效
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.header{
width: 960px;
height: 81px;
/* background: red; */
margin: 0 auto;
position: relative;
}
.header-left{
background-image: url(img/glb_v2.png);
background-position: 15px 30px;
width: 700px;
height: 81px;
float: left;
}
.header-right{
width: 100px;
height: 30px;
line-height: 20px;
font-size: 10px;
/* background: black; */
text-align: right;
float: left;
position: absolute;
right: 0px;
top: 33px;
}
.center{
width: 960px;
height: 620px;
margin: 0 auto;
/* background: black; */
position: relative;
clear: both;
}
.center-top{
width: 960px;
height: 36px;
background-image: url(img/bgx.png);
background-repeat: repeat-x;
}
.center-top-h1{
font-size: 14px;
font-weight: normal;
color: white;
text-indent: 25px;
padding-top: 8px;
}
.center-bg{
width: 960px;
height: 620px;
background-image: url(img/bgy.png);
background-repeat: repeat-y;
margin: 0;
}
.center-bg-left{
width: 642px;
height: 620px;
float: left;
position: relative;
}
.center-bg-right{
width: 318px;
height: 620px;
float: left;
position: relative;
}
.center-bg-left-top{
width: 464px;
height: 58px;
padding-left: 118px;
position: absolute;
right: 0;
top: 50px;
}
.center-bg-left-top-input{
font-size: 16px;
font-weight: bold;
width: 166px;
height: 35px;
}
</style>
</head>
<body>
<div class="header">
<div class="header-left"></div>
<div class="header-right"> <a href="#">反馈意见</a> </div>
</div>
<div class="center">
<div class="center-top">
<h1 class="center-top-h1">欢迎注册网易邮箱!邮件地址可以登录使用其他网易旗下产品。</h1>
</div>
<div class="center-bg">
<div class="center-bg-left">
<div class="center-bg-left-top">
<input type="button" value="注册免费邮箱" class="center-bg-left-top-input"/>
<input type="button" value="注册免费邮箱" class="center-bg-left-top-input"/>
</div>
</div>
<div class="center-bg-right"></div>
</div>
</div>
</body>
</html>