1、写三角形
.tooltip:after {

content: '';

position: absolute;

border: 6px solid #5190ac;

border-color: #5190ac transparent transparent;

width: 0;

height: 0;

bottom: -12px;

left: 50%;

 margin-left: -6px;

}

1、:after 写三角形 border  2、css写大于号>

 

 

2、写大于号

width: 12px;
height: 12px;
position: absolute;
border-left: 1px solid #FF7154;
border-bottom: 1px solid #FF7154;
-webkit-transform: translate(0,-50%) rotate(-135deg);
transform: translate(0,-50%) rotate(-135deg);

相关文章: