zoukankan      html  css  js  c++  java
  • css兼容性问题

    其实做网页最大的问题还是兼容性吧,要调试IE的各种浏览器。

    DIV+CSS设计IE6、IE7、FF 兼容性  DIV+CSS网页布局这是一种趋势,我也开始顺应这股趋势了,不过在使用DIV+CSS网站设计的时候,应该注意css样式兼容不同浏览器问题,特别是对完全使用DIV+CSS设计的网页,就应该更注意IE6 IE7 FF对CSS样式的兼容.

    这里它有两个内核:

     浏览器的内核:渲染引擎{
    ie:trident
    firefor:gecko
    chrome:webkit
    safari:webkit
    opera:presto
    }
    js的内核{
    ie:jscript
    firefox:tracemonkey
    chrome:v8
    safari:squirrlfish extreme
    opera:carakan 

     

    这里有几个简单的兼容问题可以试一试

     [*+><]对ie6.7有效
    _对ie6有效
    9对ie6.7.8有效
    对ie8有效

     

     IE的if条件Hack :
    1. <!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--> 
    2. <!--[if IE]> 所有的IE可识别 <![endif]--> 
    3. <!--[if IE 5.0]> 只有IE5.0可以识别 <![endif]--> 
    4. <!--[if IE 5]> 仅IE5.0与IE5.5可以识别 <![endif]--> 
    5. <!--[if gt IE 5.0]> IE5.0以及IE5.0以上版本都可以识别 <![endif]--> 
    6. <!--[if IE 6]> 仅IE6可识别 <![endif]--> 
    7. <!--[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]--> 
    8. <!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]--> 
    9. <!--[if IE 7]> 仅IE7可识别 <![endif]--> 
    10. <!--[if lt IE 7]> IE7以及IE7以下版本可识别 <![endif]--> 
    11. <!--[if gte IE 7]> IE7以及IE7以上版本可识别 <![endif]-->

    注意:gt = Great Then 大于 
    > = > 大于号 
    lt = Less Then 小于 
    < = < 小于号 
    gte = Great Then or Equal 大于或等于 
    lte = Less Then or Equal 小于或等于 

     

     

     

  • 相关阅读:
    python之timeit模块
    python isinstance函数
    继承
    冒泡排序&&选择排序
    监听器
    被钝化的代码
    Ajax验证用户名
    原生ajax访问服务器所展现的现象
    今天
    随机点名
  • 原文地址:https://www.cnblogs.com/miaozhicheng/p/4963447.html
Copyright © 2011-2022 走看看