您的位置:首页 > 其它

用内容生成实现对话框气泡

2017-04-12 10:34 162 查看
4000

这是最终的效果,留作保存



以下是代码:

html:


因为我刚好遇见你.留下十年的期许,如果再相遇...

css:

.tip {
width: 140px;
height: 100px;
background-color: #fff;
position: relative;
border: 4px solid #ddd;
font-size: 16px;
text-align: justify;
}
.tip span {
display: inline-block;
padding:5px;
}
.tip:after, .tip:before {
border: solid transparent;
content: ' ';
height: 0;
left: 100%;
position: absolute;
width: 0;
}
.tip:after {
border-width: 9px;
border-left-color: #fff;
top: 15px;
}
.tip:before {
border-width: 14px;
border-left-color: #ddd;
top: 10px;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  对话框 内容生成
相关文章推荐