首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

浏览器兼容代码 条件诠释判断

2012-12-23 
浏览器兼容代码 条件注释判断用条件注释判断浏览器是什么版本!--[if lt IE 7]html classie6 ![end

浏览器兼容代码 条件注释判断

用条件注释判断浏览器是什么版本<!--[if lt IE 7]>      <html class="ie6"> <![endif]--><!--[if IE 7]>         <html class="ie7"> <![endif]--><!--[if IE 8]>         <html class="ie8"> <![endif]--><!--[if gt IE 8]><!--> <html>             <!--<![endif]-->然后在<style>根据不同浏览器情况写.ie6 类名{        }.ie7 类名{        }.ie8 类名{        }这样写便于维护

热点排行