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

[复制链接]
查看11 | 回复3 | 2012-7-17 09:52:46 | 显示全部楼层 |阅读模式
你这里所说的浮动是不是就是想让某一个层在其它层之上呢?如果是这样的话,可以用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;}...
回复

使用道具 举报

千问 | 2012-7-17 09:52:46 | 显示全部楼层
float:left;display:inline这样就行了,IE6会双倍...
回复

使用道具 举报

千问 | 2012-7-17 09:52:46 | 显示全部楼层
float:left,就是左浮动啊...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行