我想像图片中那样编写边框。
p{
border: 1px solid green;
}

<div class="container">
<p>Some texts</p>
</div>
&#13;
答案 0 :(得分:0)
.speechbubble{
height:100px;
width:100px;
border:1px solid green;
position:relative;
background-color:white;
border-radius:5px;
}
.speechbubble:after{
height:10px;
width:10px;
border: 1px solid green;
border-left:1px solid white;
border-bottom:1px solid white;
position:absolute;
content:"";
top:50px;
right:-6px;
transform:rotate(45deg);
background-color:white;
}
&#13;
<div class="speechbubble"></div>
&#13;
此处还有working fiddle