如何在具有动态宽度的内联元素旁边设置浮动元素
演示:http: //jsfiddle.net/J2Df8/
html
<div>
<span>Lorem ipsum dolor</span>
<span class="floater"></span>
</div>
css
DIV{
width: 100px;
}
SPAN.floater{
height:4px;
width:4px;
margin-top:3px;
float:left;
background-color: #FF0000;
}