html怎么使span float,恼火啊,span不是内联元素吗?加了个float:right,怎么就成块元...

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

能帮看下代码吗?

body {

margin:0;

}

#all{

width:960px;

}

#head{

width:960px;

height:27px;

background-color:#999999;

}

#head a{

float:left;

text-decoration:none;

color:white;

background-color:#999999;

padding:0.2em 0.6em;

border-right:1px solid white;

}

#head a:hover {background-color:#000000}

#head li {display:inline}

#head ul{

width:100%;

padding:0;

margin:0;

}

#sign{

width:960px;

}

#right{

text-align: left;

width:60px;

float: right;

border:1px solid rgb(225, 224, 225);

}

}

.topsize{

font-size:18px;

font-weight:bold;

color: #000000;

}

#bobo{

text-align: left;

width:660px;

float: left;

border:1px solid rgb(225, 224, 225);

}

#bobo ul {

line-height:26px;

width:100%;

padding:0;

margin:0;

list-style:none;

}

#bobo li {

width:100%;

border-bottom:1px dashed rgb(239, 239, 239);

}

#bobo li:first-child{

width:100%;

border-bottom:1px solid #969696;

}

#bobo span{

float:right;

width:100px;

}

#reply{

font-family:Verdana;

font-size:12px;

width:960px;

text-align: left;

float: left;

border:1px solid rgb(225, 224, 225);

}

#replyon{width:100px; height:100px; float:right;border:1px solid rgb(225, 224, 225);}

#reply ul{

line-height:26px;

width:100%;

padding:0;

margin:0;

list-style:none;

}

#reply li{

width:100%;

border-bottom:1px dashed rgb(239, 239, 239);

}

#reply span{

float:left;

width:100%;

background-color:rgb(238, 238, 255);

}

#foot{

float:left;

width:960px;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值