我能做到這一點不沾HTML?
HTML ...
<div>
<img src="http://i50.tinypic.com/1zey0j8.gif" alt="" />WALLPAPER
<span>some paragraph here
some paragraph here /*this should not go below the image*/
some paragraph here
some paragraph here
</span>
</div>
CSSS ...
div{width: 200px;}
img{float: left; width: 50px; height: 50px;}
span{display: block;}
編輯
的Kaloyan伊萬諾夫給了我最好的答案。但我想知道如何溢出隱藏的伎倆?
更改跨度:' span {display:block;向左飄浮;寬度:150px}'http://jsfiddle.net/BYnLd/4/ – Andrew 2013-04-23 13:46:59