Home  >  Q&A  >  body text

javascript - In IE (9+), the usual style does not take effect. It only takes effect when the element is selected using the developer tools. What is the reason?

It can take effect in both chrome and Firefox. It can only take effect in IE, not even the Edge browser.
The page when no selection is made


F12Select the page of this element


Styles that should be applied:
.interactiveSystem {

font-size: 0.3rem;
color: #333;

}

世界只因有你世界只因有你2697 days ago709

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-31 10:41:30

    Possible reasons:

    1. In the development mode, the debugging mode of the IE browser may be the debugging mode of IE11 rem. The lower version of the IE browser in this unit cannot be recognized. (If you develop mobile products, why should you debug under the IE series browser? ?) You can check the compatibility of uncertain attributes on Baidu can i use website

    1. If the css is loaded using js, this statement console.log() will not run in the normal mode of browsers with lower versions of IE, and will block the code and affect subsequent programs. It is not affected in debug mode.

    reply
    0
  • Cancelreply