我有浮动问题。我正在做导航栏。它应该与左浮动内联,最后一项必须在行尾(右浮动)。更改最后ul项的浮点数
我试过利润率左但不是好...
ul {
position: static;
list-style-type:none;
margin-left:150px;
margin-top: 11px;
padding:0;
overflow:hidden;
}
ul li{
float: left;
margin-left: 30px;
}
ul li a{
color: inherit;
text-decoration: none;
height: 72px;
font-weight: bold;
font-size: 19px;
}
ul li:last-child a{
position: relative;
margin-right: 0%;
}
就http://jsfiddle.net样本 –
你不需要'位置:静态的; ' –
use float:right for li:last-child – radha