nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
tt
vv
一定float left
我怎么样才能让两个span在b中水平居中而且顶部不超过b呢????????
回复讨论(解决方案)
span{
padding:10px;
border:#999 solid 1px;
display: inline-block;
}
span{
padding:10px;
border:#999 solid 1px;
line-height: 40px;
}
span 里面加display: inline-block; 就可以饿了
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
tt
vv