CSS绘制无图片的气泡对话框

<div class="qipao_contianer">
            <div class="qipao_content yj3">NEW</div>
            <s><i></i></s>
 </div>

<Style>

/*气泡框*/
.qipao_contianer
{
 float:left;
font-size: 7px;
font-family: "Microsoft YaHei","微软雅黑",Helvetica,"黑体",Arial,Tahoma;
color:#fa0001;
display:block;
height:15px;
width:20px;
background-color:transparent;
*border:1px solid #eeb9bc;
}
s{
margin-top:-6px;
margin-left:-7px;
display:block;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent  red transparent transparent;
border-style:dashed solid dashed  dashed;
/*border-width:5px;*/
border-bottom: 2px solid transparent; /* 下边框的高 */
border-top: 2px solid transparent; /* 上方边框的高 */
border-right: 4px solid #eeb9bc; /* 左边框的长度|宽度,以及背景色 */
}
i{
margin-top:-1px;
margin-left:2px;
display:block;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent  #fff transparent transparent;
border-bottom: 1px solid transparent; /* 下边框的高 */
border-top: 1px solid transparent; /* 上方边框的高 */
border-right: 3px solid #fff; /* 左边框的长度|宽度,以及背景色 */
}
.qipao_content
{
display:block;
border:1px solid #eeb9bc;
background-color:#fff;
*border-top:1px solid #eeb9bc;
*border-top:1px solid #eeb9bc;
*border-left:none;
*border-right:none;
*height:8px;
*font-variant:small-caps;
text-align:center;
width:20px;
line-height:8px;
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>

上一篇:Optimistic and Pessimistic locking


下一篇:java围棋游戏源代码