分享java带来的快乐

我喜欢java新东西

css 判断浏览器

<!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=utf-8" />
 <title>关于用CSS区分Firefox、IE6、IE7webjx.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>

posted on 2011-05-17 09:07 强强 阅读(277) 评论(0)  编辑  收藏 所属分类: css 处理技巧


只有注册用户登录后才能发表评论。


网站导航: