Article ID: 262161 - Last Review: June 23, 2009 - Revision: 7.1 All style tags after the first 30 style tags on an HTML page are not applied in Internet ExplorerThis article was previously published under Q262161 On This PageSYMPTOMS All style tags after the first 30 style tags on an HTML
page are not applied. Occasionally, you may also receive the following error
message: The page you are looking for might have been
moved or had its name changed. This style tag limitation may also affect the viewing of .xml files by using .xsl files. When the .xsl file has style tags embedded inside the document, you receive the following error message when you try to view the .xml file: Internet Explorer could not open the Internet Site:
file://c:\aaa.xml The page cannot be displayed CAUSE There is a limit of 30 style tags in Internet Explorer.
RESOLUTION To work around this limitation, combine multiple classes
into a single style tag. MORE INFORMATIONIt is not important if you use an inline style sheet, or if
you point to a cascading style sheet (CSS) file. The problem occurs in either
case. The code sample that is provided in the "Steps to reproduce the behavior" section dynamically creates style sheets. And, you receive the following error message: A Runtime Error has occurred. Do you wish to Debug? Line: 8 Error: Invalid argument. Steps to reproduce the behaviorPaste the following code sample in an HTML page. Run the code sample. An error is generated when the thirty-first style tag is applied.REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web sites: Style element style object http://msdn.microsoft.com/en-us/library/ms535898(VS.85).aspx (http://msdn.microsoft.com/en-us/library/ms535898(VS.85).aspx) Internet Explorer updates http://msdn.microsoft.com/ie/ (http://msdn.microsoft.com/ie/) APPLIES TO
| Article Translations
|
Back to the top
