zoukankan      html  css  js  c++  java
  • ie条件注释还能这样写

    通过条件注释给html开始标签定义不同的class, 来区分不同版本的IE,可以在样式表中避免 样式属性hack (如 _margin-top, *float:none )
    注意: IE10+不支持条件注释
    <!doctype html>
    <!--[if lt IE 7 ]>   <html class="ie ie6" lang="en">    <![endif]-->
    <!--[if IE 7 ]>  <html class="ie ie7" lang="en">    <![endif]-->
    <!--[if IE 8 ]>   <html class="ie ie8" lang="en">    <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!-->  <html class="no-js" lang="en">  <!--<![endif]-->
    <headprefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# rue_la_la: http://ogp.me/ns/fb/rue_la_la#">
    <metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/>
     
    css:
    .ie6 .foo{  }
    .ie7 .foo{  }
    .ie8 .foo{  }
  • 相关阅读:
    Java集合的Stack、Queue、Map的遍历
    LinkedHashMap的实现原理
    HashSet的实现原理
    HashMap的实现原理
    leetcode526
    leetcode406
    leetcode413
    leetcode513
    leetcode338
    leetcode419
  • 原文地址:https://www.cnblogs.com/stephenykk/p/3480713.html
Copyright © 2011-2022 走看看