This time to everyone to bring how to solve IE11 css Hack, to solve the IE11 of the CSS Hack considerations, the following is the actual case, together to see.
<script>//for ie10if (/* @cc_on!@*/false) {document.documentelement.classname+= ' IE ' +document.documentmode;} For IE11 and non-IE browser,//Because the IE11 under Document.documentmode is 11, so the HTML tag will be added Ie11 style class; Instead of IE, document.documentmode is undefined, so the HTML tag adds ieundefined style classes. if (/* @cc_on!@*/true) {document.documentelement.classname+= ' IE ' +document.documentmode;} <script/>
<style>.ie10.testclass{color:red}.ie11.testclass{color:blue}.ieundefined.testclass{color:green}<style />
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Related reading:
Axios How to Promise-based HTTP request client
Vue How to use Anmate.css
Useful 404 Components