IE10 Developer Tool Causes Lack of Style

I have page1, including page2 with an iframe tag, both of these pages link to the same stylesheet, everything works fine until I hit "F12" to switch the developer tool in IE10, some of the classes skipped the styles defined in css file suddenly, and two pages will go to the wrong display. Can anyone help?

There are two methods to solve this problem, changing the class name or adding a timestamp after the style URL. Why?

+4
source share
1 answer

This is a bug in IE10.

You can add a query string to page2 to fix this error:

page 2:

 <link rel="stylesheet" href="css/base.css?t=2013" /> <link rel="stylesheet" href="css/layout.css?t=2013" /> 

page 1:

 <link rel="stylesheet" href="css/base.css" /> <link rel="stylesheet" href="css/layout.css" /> 
+2
source

Source: https://habr.com/ru/post/1481084/


All Articles