gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 04:20:19 26 4
gpt4 key购买 nike

我在数据库中存储了自定义 HTML。 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

该代码在 Midori、Opera、Firefox、Seamonkey、Chrome 和 IE 8 中运行良好,但是它在最后一个 UL 之后显示一个附加的项目符号列表项,并带有空文本,这种情况仅在 IE 9 中发生。发生这种情况是因为我没有关闭段落标签?

注意:自定义 HTML 位于表单内

最佳答案

可能是因为您没有使用 </li> 关闭列表项

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

您还应该只使用一个无序列表 <ul></ul>而不是每个列表项都有一个。并且,尽管它可能以其他方式工作,但显示粗体 <b> 等标签理想情况下应该进入结构标签内部,例如列表项 <li> .

关于java - 自定义 HTML 代码在 IE 9 中创建空列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17196553/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com