首页 > 其他 > 详细

用伪元素完成箭头

时间:2020-04-09 20:23:09      阅读:86      评论:0      收藏:0      [点我收藏+]
.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);

用伪元素完成箭头

原文:https://www.cnblogs.com/linm/p/12669176.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!