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

来源:互联网 发布:smb端口号 xp 编辑:程序博客网 时间:2024/06/05 00:24

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


以下是代码:

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;}


0 0
原创粉丝点击