Home >Web Front-end >CSS Tutorial >Solve the problem of dynamically modifying link styles in IE and importing css without refreshing_Experience exchange
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.