气泡框

<html>
<head>
<style type="text/css">
body{
background-color:blue
}
.test{width:300px; padding:30px 20px; margin-left:60px; background:#beceeb; position:relative;}
.test span{width:0; height:0; font-size:0; overflow:hidden; position:absolute;}
.test span.bot{
border-width:20px;
border-style:solid;
border-color:#ffffff #beceeb #beceeb #ffffff;
left:-40px;
top:40px;
}
.test span.top{
border-width:15px 20px;
border-style:dashed solid solid dashed;
border-color:transparent #beceeb #beceeb transparent;
left:-40px;
top:20px;
}

</style>
</head>

<body>
<div class="test">

<span class="top"></span>
CSS “边框法”实现气泡对话框效果一
</div>
</body>
</html>

posted @ 2016-08-03 18:21  顾锦书-王丹  阅读(148)  评论(0编辑  收藏  举报