用伪元素完成箭头

.g-arrows4:after {
  content: " ";
  display: inline-block;
  height: 10px;
  width: 10px;
  border-width: 2px 2px 0 0;
  border-color: #c8c8cd;
  border-style: solid;
  -webkit-transform: matrix(.71, .71, .71, -.71, 0, 0);
  transform: matrix(.71, .71, .71, -.71, 0, 0);
  position: absolute;
  top: 39%;
  left: 62%;
  margin-top: -4px;
}

参考文章

https://blog.csdn.net/weixin_42103959/article/details/81044389

若想实现箭头向左  ---  transform: matrix(-.71, .71, .71, .71, 0, 0);

若想实现箭头向上  ---  transform: matrix(.71, -.71, .71, .71, 0, 0);

若想实现箭头向右  ---  transform: matrix(.71, .71, -.71, .71, 0, 0);

若想实现箭头向下  ---  transform: matrix(.71, .71, .71, -.71, 0, 0);

posted @ 2020-04-09 20:02  一只小菜鸟呀!  阅读(742)  评论(0编辑  收藏  举报