Internet Explorer最多限制为32个单独的styleSheet。 [英] Internet Explorer imposes a maximum limit of 32 individual styleSheet.

查看:90
本文介绍了Internet Explorer最多限制为32个单独的styleSheet。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个丰富的网页,在我的.aspx页面中导入了超过32个CSS文件。它工作正常,并显示firefox / IE + Windows XP中的所有CSS效果。但它在IE + vista中不起作用。 32个计数后忽略了CSS文件,忽略了32个计数后的CSS。
我搜索了一些问题并发现一些博客告诉这个IE限制Internet Explorer限制你最多32个@import语句在您的CSS文件中。"

请参阅下面的论坛
http://www.agum.com/web/2008/03/11/internet-explorer-issue-maximum-of-32-css -import /结果http://joshua.perina.com/africa/gambia/fajara/post/2008/1/25/internet-explorer-css-file-size-limit点击搜索结果有什么帮助?

解决方案

你好,



你是对的;给定页面中有31个CSS文件的限制。如果您需要更多,请使用多个页面导入它们。例如,如果您需要60个CSS文件,请创建一个文件以导入前30个文件,然后创建第二个文件以导入下一个30个文件。



您可能还想再看一下您网站的设计,并问自己为什么需要这么多CSS文件。毕竟,每次导入都需要一定的时间来加载。无论如何,值得思考。



无论如何,我希望这会有所帮助...



- Lance



Hello everyone,
                  I have a rich web page which has more than 32 CSS files imported in my .aspx page. It works fine and shows all the CSS effects in firefox / IE +windows XP. However it does not works in IE + vista. CSS files were ignored after 32 count and CSS after 32 counts were ignored.
                 I have googled for the problem and find some of the blogs that were telling this as a IE limitations Internet Explorer restricts you to a maximum of 32 @import statements in your CSS file."

See below forum
http://www.agum.com/web/2008/03/11/internet-explorer-issue-maximum-of-32-css-import/
http://joshua.perina.com/africa/gambia/fajara/post/2008/1/25/internet-explorer-css-file-size-limit


Any help?

解决方案

Hi there,

 

You are correct; there is a limit of 31 CSS files in a given page.  If you need more, use multiple pages to import them.  For example, if you need 60 CSS files, create one file to import the first 30 and a second file to import the next 30.

 

You may also want to take another look at the design of your site and ask yourself why you need so many CSS files.  After all, each import requires a certain amount of time to load.  It's worth thinking about, at any rate.

 

In any event, I hope this helps...

 

-- Lance

 


这篇关于Internet Explorer最多限制为32个单独的styleSheet。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆