<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-hans" lang="zh-hans">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IE 7 lang filter hack</title>
<style type="text/css">
.item {color: #000000;}
html>body .item {color: #CC33CC;}
*:lang(zh) .item{color: #666666;}
.item:empty {color: #666666 !important}
</style>
</head>
<body lang="zh">
<p class="item">在这里IE7是紫色#CC33CC,IE6是黑色#000000,Firefox是灰色#666666</p>
</body>
</html>
没有评论:
发表评论