Home  >  Article  >  Web Front-end  >  Limit on the number of selectors in a single css file under IE8_html/css_WEB-ITnose

Limit on the number of selectors in a single css file under IE8_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:39:321246browse

Recently, we are fixing a strange problem in IE8. The reason is initially confirmed: the number of single CSS file selectors in IE8 is limited to 4095.

If the number of a.css selectors is greater than 4095, IE8 will truncate the redundant selectors by default, which may cause some styles of a.css to be loaded but not parsed by the IE8 browser.

Official description: https://msdn.microsoft.com/en-us/library/aa358796(VS.85).aspx

Testing tool: https://github.com/ t32k/stylestats

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn