其他分享
首页 > 其他分享> > 纯css绘制简易对话气泡

纯css绘制简易对话气泡

作者:互联网

<body>
            <div class="curType blockCenter" >
              <p>绘制简易气泡</p>
              <div class="triangle"></div>
            </div>
	</body>
<style>
      p{
		box-shadow: 2px 1px 18.27px 2.73px #8080ff inset;
		border-radius: 5px;
		padding: 5px 10px;
		margin: 0;
		text-align: center;
      }
	.triangle {
	    margin: 0 auto;
	    border-left: 4px solid transparent;  
	    border-right: 4px solid transparent;  
	    border-bottom: 5px solid  #8080ff ;
	    width: 0px;
	    height: 0px;
	    transform:rotate(180deg);
	}
</style>

标签:solid,px,简易,8080ff,5px,4px,border,css,气泡
来源: https://blog.csdn.net/weixin_39225682/article/details/115266884