IE 8 对每页的样式表数量有限制吗?

编程入门 行业动态 更新时间:2024-10-26 21:35:35
本文介绍了IE 8 对每页的样式表数量有限制吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在 关于 CSS 的答案,一位用户说:

Internet Explorer has 据说每个文件有 4096 个 CSS 规则 的限制.参考

Internet Explorer has is said to have a limit of 4096 CSS rules per file. Reference

此外,它对可以嵌入单个文档的样式表数量有限制.我认为是 20.

Also, it has a limit on the number of style sheets you can embed in a single document. I think it is 20.

虽然 MSDN 上的参考 似乎确认这一点(还有 一个博客post 在 IE7 中证实了这一点),IE8 是否仍然如此?

While the reference on MSDN seems to confirm this (and there's a blog post which confirms this in IE7), is this still the case for IE8?

推荐答案

是的,IE8(甚至显然 IE9)将样式表的数量限制为每页 31 个.

Yes, IE8 (and even IE9 apparently) limit the number of style sheets to 31 per page.

Telerik 有一篇文章 和 测试页面 演示了该问题.根据同一篇文章中的评论,每个文件 4096 条规则限制已在 Microsoft Connect 中标记为无法修复,但我无法验证这一点.

Telerik has an article and test page which demonstrate the issue. According to comments in the same article, the 4096 rules per file limitation has been marked as Won't Fix in Microsoft Connect but I've been unable to verify that.

更多推荐

IE 8 对每页的样式表数量有限制吗?

本文发布于:2023-10-17 11:05:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1500707.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:每页   样式表   数量

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!