CSS | Only apply styling to Internet Explorer -


currently testing website on internet explorer 10 , 11.

currently have stylesheet has styling in should apply when visiter browsing website using internet explorer. tried use conditional comments not supported in internet explorer 10 , 11.

i wondering if has dealt issue before , push me right direction. appreciated.

here code ie10 , ie11. add class html tag.

<!--[if !ie]><!--> <script> if (/*@cc_on!@*/false) {       document.documentelement.classname+=' ie10';   }   </script> <!--<![endif]-->   <script> var ua = navigator.useragent,       doc = document.documentelement; if((ua.match(/rv:11.0/i))){     doc.classname = doc.classname + " ie11";   } </script> 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -