.nav {
height: 40px;
width: 1000px;
border-radius: 8px;
background-color:#7F7F7F;
}这样就能不用navleft跟right了
在form加个css line-height: 40px;
input就能垂直居中了,不需要margin
height: 40px;
width: 1000px;
border-radius: 8px;
background-color:#7F7F7F;
}这样就能不用navleft跟right了
在form加个css line-height: 40px;
input就能垂直居中了,不需要margin
2018-02-14
.list li{
list-style-type:none;
float:left;
width:50px;
}
.list li a{
text-decoration:none;
}
.list li a:hover{
background-color:red;
}
list-style-type:none;
float:left;
width:50px;
}
.list li a{
text-decoration:none;
}
.list li a:hover{
background-color:red;
}
<style>
.myBox{
width:183px;
border:1px solid red;
height:88px;
margin-top:10px;
margin-right:15px;
}
</style>
</head>
<body>
<!--在此添加一个div标签,并设置其class属性为myBox-->
<div class = "myBox">
Hello World!
</div>
.myBox{
width:183px;
border:1px solid red;
height:88px;
margin-top:10px;
margin-right:15px;
}
</style>
</head>
<body>
<!--在此添加一个div标签,并设置其class属性为myBox-->
<div class = "myBox">
Hello World!
</div>