ie6 ie7 ie8 ie9 firefox css hack

话就不多说了,直接看实例吧!一看就明白了

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>ie6 ie7 ie8 ie9 firefox css hack</title>

<style type="text/css">

#info{

width:150px;

height:300px;

background:#000;/*firefox*/

background:#f00\0;/*ie9*/

background:#0f0 \9\0;/*ie8 这里需要注意一下 中间有个空格*/

*background:#00f;/*ie7*/

_background:#ccc;/*ie6*/}

</style>

</head>

<body>

<div ></div>

</body>

</html>