简体   繁体   English

自定义HTML代码在IE 9中创建空列表

[英]Custom HTML Code creates empty list in IE 9

I have a custom HTML stored in database. 我有一个自定义HTML存储在数据库中。 The html is simple ordered list html是简单的有序列表

    Before the dawn <ul> <B><li>Blah blah blah !!</ul><ul>
    <li>Do not combine capital letters Blah blah</b></ul>
    <P> For any questions, please refer to your customer support

The code is working perfectly in Midori, Opera, Firefox, Seamonkey, Chrome and IE 8 however it displays an additional bullet list item after the last UL with an empty text this happens only in IE 9. Is this happening because am not closing the paragraph tag? 该代码在Midori,Opera,Firefox,Seamonkey,Chrome和IE 8中都可以正常运行,但是它在最后一个UL之后以空文本显示了一个附加的项目符号列表项,仅在IE 9中会发生这种情况。标签?

Note: The custom HTML goes within a Form 注意:自定义HTML包含在表单中

Probably, because you're not closing your List Items with </li> 可能是因为您没有使用</li>关闭列表项

Before the dawn <ul><li><b>Blah blah blah !!</b></li>
<li><b>Do not combine capital letters Blah blah</b></li></ul>

You should also use just one Unordered List <ul></ul> instead of having one for every list item. 您还应该只使用一个无序列表<ul></ul>而不是每个列表项都使用一个。 And, although it may work otherwise, display tags like bold <b> should ideally go inside the structure tags like list item <li> . 而且,尽管它可能会工作,但理想情况下,显示标签(如粗体<b>应该放在结构标签(如列表项<li>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM