首页网页设计CSS教程 → 用CSS区分浏览器Firefox、IE6、IE7的特效代码

用CSS区分浏览器Firefox、IE6、IE7的特效代码

日期:2007-7-20 15:38:13 出处:其他转载 作者:不详 人气:
<!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">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
 <title>关于用CSS区分Firefox、IE6、IE7chinahtml.com</title>
 <style type="text/css">
 #example{color:red ;}/*firefox*/
 * html #example{color:blue;}/*ie6*/
 *+html #example{color:green;}/*ie7*/
 </style>
 </head>
 <body>
 <div id="example">在FireFox下应为红色,在IE6.0下应为蓝色,在IE7.0下应为绿色。</div>
 </body>
 </html>

关于本站 | 帮 助 | 广告服务 | 版权声明 | 业务合作 | 捐助本站 | 软件发布 | 联系我们
77资源下载 www.77zy.com ©2007-2008 版权所有
备案编号:赣ICP备07002641号  QQ:674648476