gpt4 book ai didi

html - 在 IE9 中显示全零的有序列表

转载 作者:技术小花猫 更新时间:2023-10-29 11:41:52 30 4
gpt4 key购买 nike

我有一个 <ol> (有序列表)并在 FF、Safari、Chrome 中正确呈现。但是在 IE9 中它显示全零。这不是间距/填充问题,因为我能够看到零。

我的HTML如下:

<ol> 
<li>Enter basic company information</li>
<li>Select from our portfolio of products</li>
<li>Attach your employee census</li>
<li>Review your selections and submit your request.</li>
</ol>

有人遇到过这个问题并希望找到解决方案吗?

ol issues

最佳答案

更新 3/20/2012 - 在 IE10 中修复

此回归已在 Internet Explorer 10(所有文档模式)中修复。 Microsoft 已删除 Connect 条目,因此您无法查看其状态。由于 Microsoft 现在自动下调 IE10,它应该适用于您所有的普通客户。


这是一个已知的 IE9 回归,已在 Microsoft Connect 上报告:

Ordered list numbering changes from correct to 0, 0

Type: Bug
ID: 657695
Opened: 4/6/2011 12:10:52 PM
Access Restriction: Public

0 Workaround(s)
5 User(s) can reproduce this bug


更新:

Posted by Microsoft on 6/14/2011 at 3:20 PM
Thank you for your feedback.

We were able to reproduce the issue and are investigating it.

Best regards,

The Internet Explorer Team


重现错误的 HTML 页面:

<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>IE9 Ordered List Zero Bug</TITLE>
<SCRIPT type="text/javascript">
setTimeout(function ()
{
document.getElementById("dv1").innerHTML = "<ol><li>XXX</li><li>YYY</li></ol>";
var container = document.createElement('span');
container.style.cssText = "display:none";
document.getElementById("dv2").appendChild(container);
}, 1000);
</SCRIPT>
</HEAD>
<BODY>

<DIV id="dv1">
<OL>
<LI>AAA</LI>
<LI>BBB</LI>
</OL>
</DIV>

<DIV id="dv2"></DIV>

</BODY>
</HTML>

A workaround是在您的 DIV 之后放置一个空元素:

<div id="one">
<ol>
<li>one</li>
<li>two</li>
</ol>
</div>
<div id="two" style="display:none">
<ol>
<li>three</li>
<li>four</li>
</ol>
</div>
<div id="empty"></div>

出现错误的浏览器

Internet Explorer 9 (9.0.8112.16421)

  • 文档模式怪癖:有效
  • 文档模式 IE7 标准:有效
  • 文档模式 IE8 标准:失败
  • 文档模式 IE9 标准:失败

Internet Explorer 8 (8.0.6001.19048)

  • 文档模式怪癖:有效
  • 文档模式 IE7 标准:有效
  • 文档模式 IE8 标准:有效

Internet Explorer 7 (7.0.6000.16982): 有效

谷歌浏览器 10 (10.0.648.134): 有效

关于html - 在 IE9 中显示全零的有序列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5584500/

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