Chinaunix首页 | 论坛 | 博客
  • 博客访问: 76724
  • 博文数量: 73
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 740
  • 用 户 组: 普通用户
  • 注册时间: 2014-07-04 16:50
文章分类
文章存档

2014年(73)

我的朋友

分类: Html/Css

2014-07-10 17:20:38


点击(此处)折叠或打开

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
  2. <html xmlns="">
  3. <head>
  4. <title>CSS特效-纯CSS实现三角形图标</title>
  5. <meta http-equiv="content-type" content="text/html;charset=gb2312">

  6. <style type="text/css">
  7. article,aside,figure,footer,header,hgroup,menu,nav,section{display:block;}
  8. body{background:#000;}
  9. .box{width:500px;height:400px;position:relative;margin:20px auto;}
  10. b{border-color:-moz-use-text-color transparent;border-left:8px dashed transparent;border-right:8px dashed transparent;border-style:none dashed solid;border-width:0 8px 8px;color:rgba(230,30,29,0.7);color:red\9;font-size:0;height:0;left:29px;line-height:0;position:absolute;top:-8px;width:0;z-index:2;}
  11. .bg{background:rgba(255,255,255,0.5);background:#fff\9;position:absolute;left:0;bottom:0;height:50px;width:100%;}
  12. .cc{position:relative;width:100px;height:50px;background:rgba(230,30,29,0.7);background:red\9;float:left;}
  13. </style>
  14. </head>
  15. <body>
  16. <div class="box">
  17.   <img src="/jscss/demoimg/wall6.jpg">
  18.   <div class="bg"><a class="cc"><b></b></a></div>
  19. </div>
  20. </body>
  21. </html>

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