Home >Web Front-end >CSS Tutorial >Solve the problem of dynamically modifying link styles in IE and importing css without refreshing_Experience exchange

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

WBOY
WBOYOriginal
2016-05-16 12:05:561363browse

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.

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