我有以下标记:
<li id="CN2787">
<img class="fav_star" src="images/fav.png">
<span>Text, text and more text</span>
</li>
我希望这样,如果文本换行,它就不会进入图像的"列".我知道我可以用table
(我当时正在用)来做,但这对this reason不可行.
我已经try 了以下几种方法,但都没有成功:
li span {width: 100px; margin-left: 20px}
.fav_star {width: 20px}
我也试了float: right
次.
谢谢
编辑:我希望它看起来像这样:
IMG Text starts here and keeps going... and
wrap starts here.
不是这样的:
IMG Text starts here and keeps going... and
wrap starts in the space left for the image.