这是最终的效果,留作保存
以下是代码:
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;
}