我有以下标记:
<li id="CN2787">
<img class="fav_star" src="images/fav.png">
<span>Text, text and more text</span>
</li>
我想要它,这样如果文本换行,它就不会进入图像的“列”。我知道我可以用(我正在做的)来做到这一点,但由于这个原因table
这是不可行的。
我尝试了以下但没有成功:
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.