在 这个 演示中,ol 不应与 <代码>div。为什么它不起作用,我该如何修复它? 谢谢!
ol
In this demo, the ol shouldn't overlap at all with the div. Why isn't it working, and how do I fix it?Thanks!
div
您可以通过更改 list-style-position 来“修复”此问题:
list-style-position
ol { list-style-position: inside; }
outside 值将显示包含块外部的计数器,就像在您的演示中一样。
outside
演示:http://jsfiddle.net/3XwsP/
You can "fix" this by changing the list-style-position:
A value of outside will display the counters outside the containing block, like in your demo.
Demonstration: http://jsfiddle.net/3XwsP/
您还没有浮动 ol 元素。如果你这样做,它就不会重叠。这是想要的结果吗?
You haven't floated the ol element. If you do that, it doesn't overlap. Is that the desired result?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
您可以通过更改
list-style-position
来“修复”此问题:outside
值将显示包含块外部的计数器,就像在您的演示中一样。演示:http://jsfiddle.net/3XwsP/
You can "fix" this by changing the
list-style-position
:A value of
outside
will display the counters outside the containing block, like in your demo.Demonstration: http://jsfiddle.net/3XwsP/
您还没有浮动 ol 元素。如果你这样做,它就不会重叠。这是想要的结果吗?
You haven't floated the ol element. If you do that, it doesn't overlap. Is that the desired result?