史上最全的css hack(ie6-9,firefox,chrome,opera,safari)
2020-12-13 02:35
标签:style blog class code java color 史上最全的css hack(ie6-9,firefox,chrome,opera,safari),搜素材,soscw.com 史上最全的css hack(ie6-9,firefox,chrome,opera,safari) 标签:style blog class code java color 原文地址:http://www.cnblogs.com/hemei/p/3718912.html
html>
head>
title>Css Hacktitle>
style>
#test
{
width:300px;
height:300px;
background-color:blue; /*firefox*/
background-color:red\9; /*all ie*/
background-color:yellow\0; /*ie8*/
+background-color:pink; /*ie7*/
_background-color:orange; /*ie6*/
}
:root #test { background-color:purple\9; } /*ie9*/
@media all and (min-width:0px){ #test {background-color:black\0;} } /*opera*/
@media screen and (-webkit-min-device-pixel-ratio:0){ #test {background-color:gray;} } /*chrome and safari*/
style>
head>
body>
div id="test">testdiv>
body>
html>
文章标题:史上最全的css hack(ie6-9,firefox,chrome,opera,safari)
文章链接:http://soscw.com/essay/25897.html