holy shit

寺夺喜从天降

HACK小结

IE专属条件判断
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->

IE专属
*html #wrapper { width: 80px;}

Firefox专属
@-moz-document url-prefix()
{#nav { display: block; }}

Safari专属
@media screen and (-webkit-min-device-pixel-ratio:0)
{#nav { display: block; }}

Opera专属
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
{head~body #nav { display: block; }}

IE 7专属
html > body #nav {*display: block;}
*+html #wrapper { width: 60px;}

IE 6专属
#nav {_display: block;}

针对IE6
width: 100px!important;
width: 80px;

posted @ 2011-03-25 15:06  潜水鱼  阅读(149)  评论(0编辑  收藏  举报

holy shit on foot