1.搜索子元素不设置浮动无法实现垂直居中的功能。
2.
.m-topnav .u-snav{
display:inline-block;
height: 90px;
float: right;
font:16px/90px "微软雅黑";
}
.u-stt{
display: inline-block;
margin: 0 27px;
color: #000000;
}
div .u-stt:hover,div .u-stt:focus{
color: #21a557;
}
.u-snav .u-sch{
display: inline-block;
**float: right;**
width: 20px;
height: 20px;
margin:35px 0;
background: url(chaos-sprite.png) -300px -20px no-repeat;
}
.u-sch:hover,.u-sch:focus{
background: url(chaos-sprite.png) -300px 0 no-repeat;
}
3相应的需要实现的效果
实际上实现的效果
这个可以使用文字的行高来实现