1

这是我的 CSS,我喜欢将li中的链接设置为底部。我在链接上尝试了垂直底部,但这是不行的。

.textResizer {
list-style-type: none;
float: right;
width: 85px;
height: 30px;
margin: 6px 12px -6px 0px;
padding: 0;
}

.textResizer li {
float:left;
margin-left:10px;
}

.textResizer a {
color:#1a5c88;
text-decoration:none;

}

.textResizer .small a{
font-size:.75em;
font-weight:bold;   
 }

.textResizer .medium a{
font-size:1em;
font-weight:bold;   
 }

 .textResizer .large a{
font-size:1.3em;
font-weight:bold;   
 }

这是实际操作中的链接,http://jsfiddle.net/HN7Hy/在此先感谢您

4

1 回答 1

5

一种方法是将列表项设置inline-block为:http float: left: //jsfiddle.net/HN7Hy/2/

于 2013-03-20T18:50:48.520 回答