CSS将文本框包装到多个图像 [英] CSS wrapping text box to multiple images
本文介绍了CSS将文本框包装到多个图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经卡住了最后几个小时试图包装我的文本框对多个图像,如图所示:
I have been stuck the last couple of hours trying to wrap my text box against multiple images, as seen on this picture:
即使不使用js库?
此外,该解决方案必须适用于从IE6到今天的浏览器,无需js。
Also, the solution has to work in everything from IE6 to today's browsers, without js.
推荐答案
它是:
this is a class:
.alignLeft {
float:left;
margin-right: 1em;
}
.alignRight {
float:right;
margin-left: 1em;
}
and the image calls it:
<img src="photo.jpg" class="alignLeft" />
这篇关于CSS将文本框包装到多个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文