02. display: none;
03. width: 0;
04. height: 0;
05.}
06.#check[rel^="D"] {
07. display: block;
08. width: 0;
09. height: 0;
10.}
3)下面是JavaScripts的检测脚本
请确保下面的代码放在HTML文件头。
01.script. type="text/javascript"
02.var obj = document.getElementById("check");
03.var file="special.css";
04.if (window.getComputedStyle)
05. var stat = window.getComputedStyle(obj,null).getPropertyValue("display");
06.else if (obj.currentStyle)
07. var stat = obj.currentStyle.display;
08.var css3 = (stat == "block");
09.if (css3) alert("CSS3 Supported.");
10.else alert("CSS3 not supported.");
11./script