html css问题li如何设置为做浮动

2025-03-06 20:04:56
推荐回答(4个)
回答1:

你这里所说的浮动是不是就是想让某一个层在其它层之上呢?如果是这样的话,可以用positon里的绝对定位来实现。比如:a想相对于b来做绝对的定位,就可以这样写:
.a{
width: 288px;
height: 263px;
background: url(../images/foot_pic.gif) no-repeat center center;
position: absolute;
top: -20px;
right: -33px;
}
.b
{
width: 968px;
margin: auto;
position: relative;
}

回答2:

float:left;display:inline

这样就行了,IE6会双倍

回答3:

float:left,就是左浮动啊

回答4:

你的LI里面是上面蓝色斜体加下划线的字吗?