translate()方法,根据左(X轴)和顶部(Y轴)位置给定的参数,从当前元素位置移动。
transform: translate(50px,100px);
rotate()方法,在一个给定度数顺时针旋转的元素。负值是允许的,这样是元素逆时针旋转。
transform:rotate(30deg);
侧边二维码的小三角:
.a4 {
width: 10px;
height: 10px;
position: absolute;
background-color: white;
border: 1px solid #f5f5f5;
border-bottom: none;
border-left: none;
z-index: 10;
top: 50px;
right: 90px;
transform: rotate(45deg);
display: none;
}