当前位置: 网站建设 > 网页设计 > 建站经验 >

纯CSS实现带箭头的DIV方框

时间:2013-03-02 04:09来源:未知 作者:admin 点击:

标签:纯CSS实现带箭头的DIV方框 箭头(4)实现(100)CS(18)Tag(145)方框(1)CSS(823)div(47)
Tag:DIV方框 CSS DIV方框 CSS --> [网站建设之]纯CSS实现带箭头的DIV方框 head title纯CSS实现带箭头的DIV方框/title style div.container{position:absolute; top:30px; left:40px; font-size: 9pt; display:block; height:100px; width:200px; background-color:transparent; *border:1px solid #666;
纯CSS实现带箭头的DIV方框》文章地址:http://www.tfxk.com/wangyesheji/jianzhanjingyan/0302345602013.htm
Tag:DIV方框   CSS   DIV方框   CSS  

 

--> [网站建设之]纯CSS实现带箭头的DIV方框

<head>
<title>纯CSS实现带箭头的DIV方框</title>
<style>
div.container{position:absolute;
top:30px;
left:40px;
font-size: 9pt;
display:block;
height:100px;
width:200px;
background-color:transparent;
*border:1px solid #666;
}
s{
position:absolute;
top:-20px,纯CSS实现圆角效果;
*top:-22px;
left:20px,纯CSS实现三列DIV等高布局;
display:block,纯CSS实现Tab选项卡的两种方案;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent transparent #666 transparent;
border-style:dashed dashed solid dashed;
border-width:10px;
}
i{position:absolute;
top:-9px;
*top:-9px,纯CSS实现Tab的两种方案;
left:-10px;
display:block;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent transparent #fff transparent;
border-style:dashed dashed solid dashed;
border-width:10px;
}
.content{
border:1px solid #666;
-moz-border-radius:3px;
-webkit-border-radius:3px;
position:absolute;
background-color:#fff;
width:100%;
height:100%;
padding:5px;
*top:-2px;
*border-top:1px solid #666;
*border-top:1px solid #666;
*border-left:none;
*border-right:none;
*height:102px;
box-shadow: 3px 3px 4px #999;
-moz-box-shadow: 3px 3px 4px #999;
-webkit-box-shadow: 3px 3px 4px #999;
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999');
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999')";
}
</style>
</head>
<body>
<div class="container">
<div class="content"><br>建站学提示你:这是框中的文字,可动态显示。高度主动增添</div>
<s>
<i></i>,纯CSS如何实现三列DIV等高布局;
</s>
</div>
<br />
</body>
</html>

是不是很英俊,详细怎么实现的大家能够参考下面的代码:

纯CSS实现的带箭头的DIV方框,很美丽的效果,方框的右边框跟下边框还有暗影后果哦,效果如下:


(责任编辑:网站建设)
纯CSS实现带箭头的DIV方框相关文章
上一篇:纯CSS实现圆角效果 下一篇:纯css实现的文本渐变
回到顶部