Posted By

Japegrape on 06/27/14


Tagged

ie html conditional comments


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Japegrape
jakkrith


HTML Tag IE Conditional Comments


 / Published in: HTML
 

Code to replace your opening tag with conditionally set IE classes, including IE10.

  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  3. <!--[if IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8 ie7"> <![endif]-->
  4. <!--[if IE 8]> <html class="no-js lt-ie10 lt-ie9 ie8"> <![endif]-->
  5. <!--[if IE 9]> <html class="no-js lt-ie10 ie9"> <![endif]-->
  6. <!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]-->
  7. <!--[if !IE]><!-->
  8. if( Function('/*@cc_on return document.documentMode===10@*/')() ) {
  9. document.documentElement.className+=' ie10';
  10. }
  11. </script>
  12. <!--<![endif]-->

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: killjim01 on October 18, 2014

[url=http://www.uggbootsoutlet.eu.com][b]mens ugg boots,ugg sale,uggs for kids,uggs for women,ugg boots for women,ugg boots on sale,bailey button uggs,ugg boots sale,uggs for men,ugg australia,ugg,ugg boots uk,uggaustralia,uggs uk,uggs,ugg bailey button[/b][/url] [url=http://www.bottega-veneta.cc][b]bottega veneta handbags[/b][/url] [url=http://www.christianlouboutin.com.co][b]christian louboutin outlet[/b][/url] [url=http://michaelkors.charleschin.com][b]michael kors[/b][/url] [url=http://www.louisvuitton.net.co][b]louis vuitton outlet[/b][/url]

You need to login to post a comment.