我有一个有序列表:
<ol>
<li>They used to bring concerns about their children or their marriages. But increasingly parishioners are also telling Glen VanderKloot, a Lutheran minister in Springfield, Ill., about their financial worries, and that puts him in the unusual position of dispensing investment advice.</li>
<li>This is the Second g</li>
<li>This is the Third g</li>
<li>This is the fourth g</li>
<li> <strong>This is the fifth g</strong> </li>
<li>This is the seventh g</li>
<li>This is the eight g</li>
<li>This is the ninth g</li>
<li>This is the tenth g</li>
<li>This is the eleventh g</li>
<li>This is the twelvth g</li>
</ol>
它的呈现如下所示:
1. They used to bring concerns about their children or their marriages. But
increasingly parishioners are also telling Glen VanderKloot, a Lutheran
minister in Springfield, Ill., about their financial worries, and that puts
him in the unusual position of dispensing investment advice.
2. This is the Second g
3. This is the Third g
4. This is the fourth g
5. This is the fifth g
6. This is the seventh g
7. This is the eight g
8. This is the ninth g
9. This is the tenth g
10. This is the eleventh g
11. This is the twelvth g
当我有很多文本时,我希望它像上面那样格式化。我可以通过设置以下内容来实现这一点:
list-style-position:outside;
我需要调整li和ol标签的一些边距。然而,当数字是双位或三位数时,这会产生一些不良影响。因为在IE中,数字被截断了。我想能够回到使用list-style-position
属性,并删除边距,但文本将换行到数字下面,这不是我想要的。
有人知道如何关闭这个自动换行吗?