IE9 对 CSS 有文件大小限制吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11080560/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does IE9 have a file size limit for CSS?
提问by Paul Sheldrake
I'm using Drupal and I notice that if I have my CSS files aggregated that the CSS doesn't always work correctly. I know there is a problem in IE7but is there a limit to a CSS file size in IE9?
我正在使用 Drupal,我注意到如果我聚合了我的 CSS 文件,CSS 并不总是能正常工作。我知道IE7中存在问题,但是 IE9 中的 CSS 文件大小是否有限制?
回答by Paul Sheldrake
There are 3 limits:
有3个限制:
- a sheet may contain up to 4095 selectors, see http://demos.telerik.com/testcases/4095issues.html
- a sheet may @import up to 31 sheets, see http://demos.telerik.com/testcases/BrokenTheme.aspx
- @import nesting supports up to 4 levels deep
- 一张表最多可以包含 4095 个选择器,请参阅 http://demos.telerik.com/testcases/4095issues.html
- 一张纸最多可以@import 31 张,请参阅http://demos.telerik.com/testcases/BrokenTheme.aspx
- @import 嵌套最多支持 4 级深度
Microsoft support/MSDN reference links:
Microsoft 支持/MSDN 参考链接:
http://support.microsoft.com/kb/262161