求教大师一个css的问题

来源:百度知道 编辑:UC知道 时间:2024/06/14 18:59:33
打上中文字就直接成竖着的了...汗死

#menu ul li a{
width:auto;
height:18px;
margin:0px;
padding:0px;
float:left;
font-size:16px;
color:#45ada9;
line-height:13px;
text-decoration:none;
cursor:pointer
}
是这样的,应该怎么改呢

要是你把代码发全点可能更好解决
把width设置一下,加上display:block;

去掉width:auto呢?或者指定一个宽度.

怀疑是你的ul li宽度设的太小,所以a的文字自动换行了,而且如果你的a想控制宽度必须加上display:blank