感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!-- Left -->
<div class="sender">
<div>
<img src="https://static.runcodex.com/images/mix/img_avatar.png">
</div>
<div class="left_triangle"></div>
<span> hello, man! </span>
<!-- Right -->
<div class="receiver">
<div class="right_triangle"></div>
<span> hello world </span>
输入 JavaScript 代码……
xxxxxxxxxx
/* bubble style */
.sender{
clear:both;
}
.sender div:nth-of-type(1){
float: left;
.sender div:nth-of-type(2){
background-color: aquamarine;
margin: 0 20px 10px 15px;
padding: 10px 10px 10px 0px;
border-radius:7px;
.receiver div:first-child img,
.sender div:first-child img{
width:50px;
height: 50px;
.receiver{
.receiver div:nth-child(1){
float: right;
.receiver div:nth-of-type(2){
float:right;
background-color: gold;
margin: 0 10px 10px 20px;
padding: 10px 0px 10px 10px;
.left_triangle{
height:0px;
width:0px;
border-width:8px;
border-style:solid;
border-color:transparent aquamarine transparent transparent;
position: relative;
left:-16px;
top:3px;
.right_triangle{
border-color:transparent transparent transparent gold;
right:-16px;