码迷,mamicode.com
首页 > Web开发 > 详细

html: 仿制soundmanager2右上角面板

时间:2014-10-10 12:58:24      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   ar   sp   div   

 

仿制 http://schillmania.com/projects/soundmanager2/#volume 右上角面板

<style type="text/css">
body{background:#999;}
.board-container{position:relative;width:240px;height:500px;font-family:"微软雅黑";}/*总容器*/
.board-bg{position:absolute;width:100%;height:26px;background:#333333;z-index:1;}/*背景*/

.triangle{position:absolute;width:0;height:0;border:8px solid #111;}/*三角*/
.triangle-left{top:26px;left:0;border-left-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0);}/*左三角*/
.triangle-right{top:26px;right:0;border-right-color:rgba(0,0,0,0);border-bottom-color:rgba(0,0,0,0);}/*右三角*/
.board-title{position:relative;color:#fff;height:26px;line-height:26px;text-align:center;overflow:hidden;z-index:2;}/*标题文字*/
.board-body1{margin:0 16px;padding:6px;background:#fff;z-index:2;}/*内容文字*/
.board-body2{margin:0 16px;padding:6px;background:#fff;border-top:1px dotted #ddd;color:#999;z-index:2;}/*灰色内容文字*/
</style>
</head>
<body>
<div class="board-container">
    <div class="board-bg"></div>
    <div class="triangle triangle-left"></div>
    <div class="triangle triangle-right"></div>
    <div class="board-title">啊啊啊啊啊啊啊啊啊啊
    </div>
    <div class="board-body1">啊啊啊啊啊啊啊啊啊啊啊啊啊
    </div>
    <div class="board-body2">啊啊啊啊啊啊啊啊啊啊啊啊啊
    </div>
</div>

 

html: 仿制soundmanager2右上角面板

标签:style   blog   http   color   io   os   ar   sp   div   

原文地址:http://www.cnblogs.com/qq21270/p/4015265.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!