[英]How to wrap a ul around a left floated element?
I've been googling my brain out, trying to find a solution to the problem of wrapping text that may contain lists (ul) around a left floated element (figure). 我一直在谷歌搜索我的脑子,试图找到解决包装文本的问题,可能包含左浮动元素周围的列表(ul)(图)。 The bullet points is placed far out left in the floated element.
子弹点远离浮动元素。 I've tried to add overflow: hidden to the ul, and then the bullet points are correctly in place, but the list is no longer wrapped around the floated element.
我试图添加溢出:隐藏到ul,然后子弹点正确到位,但列表不再包裹浮动元素。
Of course, this is an IE issue. 当然,这是一个IE问题。
Some nice paint art showing what I do and do not want: 一些不错的油漆艺术展示了我做什么和不想做什么:
Anyone got a clue? 有人知道吗?
Try adding list-style-position:inside;
尝试添加
list-style-position:inside;
to your ul
. 你的
ul
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.