900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > html点击圆点箭头分页 css实现小箭头的实现方式

html点击圆点箭头分页 css实现小箭头的实现方式

时间:2021-04-18 19:52:04

相关推荐

html点击圆点箭头分页 css实现小箭头的实现方式

Document

*{

margin: 0;

padding: 0;

}

/*transparent 为透明*/

/*箭头向下*/

.box-down{

display: inline-block;

width: 0;

height: 0;

border-right: 30px solid transparent;

border-left: 30px solid transparent;

border-bottom: 50px solid red;

}

/*箭头向上*/

.box-up{

display: inline-block;

width: 0;

height: 0;

border-left:30px solid transparent;

border-right: 30px solid transparent;

border-top:50px solid green;

}

/*箭头向左*/

.box-left{

display: inline-block;

width: 0;

height: 0;

border-top: 30px solid transparent;

border-left: 50px solid pink;

border-bottom: 30px solid transparent;

margin-left: 20px;

}

/*箭头向右*/

.box-right{

display: inline-block;

width: 0;

height: 0;

border-top: 30px solid transparent;

border-right: 50px solid orange;

border-bottom: 30px solid transparent;

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。