gpt4 book ai didi

html - 空白 : pre-wrap not working in IE

转载 作者:太空宇宙 更新时间:2023-11-04 14:19:48 26 4
gpt4 key购买 nike

我正在使用 white-space: pre-wrap。内容未在 Quirk 模式下包装在 IE 中。

有什么解决方案可以让它在 quirk 模式下工作吗?

注意:它在IE8和IE9的严格模式下工作正常。

最佳答案

Quirks 模式是为了向后兼容非常旧的浏览器,如 IE5,这些浏览器不符合标准(也称为严格)模式。 IE8 及更高版本支持 pre-wrap 属性,但 IE 5-7 不支持:

http://www.quirksmode.org/css/whitespace.html

在这种情况下,有两种选择:

  • 不支持不符合 w3 标准的浏览器
  • 使用 IE conditionals 向不兼容的 IE 版本发送不同的样式表

关于html - 空白 : pre-wrap not working in IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14785247/

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