Chinaunix首页 | 论坛 | 博客
  • 博客访问: 29511525
  • 博文数量: 708
  • 博客积分: 12163
  • 博客等级: 上将
  • 技术积分: 8240
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-04 20:59
文章分类

全部博文(708)

分类: 系统运维

2012-09-20 11:10:02


点击(此处)折叠或打开

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
  2. <html xmlns="">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>无标题文档</title>
  6. <style type="text/css">
  7. .a{
  8.     height:500px;
  9.     width:500px;
  10.         background-color:blue; /*firefox*/
  11.         background-color:red\9; /*all ie*/
  12.         background-color:yellow\0; /*ie8*/
  13.         *background-color:pink; /*ie7*/
  14.         _background-color:orange; /*ie6*/
  15. }
  16. @media all and (min-width:0px){ .a {background-color:black\0;} } /*opera*/
  17. @media screen and (-webkit-min-device-pixel-ratio:0){ .a{background-color:gray;} } /*chrome,safari*/
  18. </style>
  19. </head>
  20. <body>
  21. <div class="a"></div>
  22. </body>
  23. </html>

阅读(2000) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~