Solve the problem of dynamically modifying link styles in IE and importing css without refreshing_Experience exchange

WBOY
Release: 2016-05-16 12:05:56
Original
1319 people have browsed it

There are two solutions:
1. Do not have an import style sheet in the style sheet.
2. Set the type attribute of the link to a null value, then modify the address of href, and finally set the type value to "text/css" to force IE to interpret the new style sheet.

Of course, I recommend the first method here. Although the import style maintains the style sheet very well, IE just doesn't support it well.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template