码迷,mamicode.com
首页 > Web开发 > 详细

用CSS样式写选择框右侧小三角

时间:2018-01-18 17:10:27      阅读:355      评论:0      收藏:0      [点我收藏+]

标签:auto   border   技术分享   lan   ima   分享图片   com   直接   down   

技术分享图片

 

 

 

直接上代码!

 

<!DOCTYPE html>
<html lang="en">
<head>
<title>小三角</title>
<style>
.up-triangle{
width:0px;
height:0px;
border-bottom:30px solid #000;
border-left:15px solid transparent;
border-right:15px solid transparent;
margin:100px auto;
}
.down-triangle{
width:0px;
height:0px;
border-top:30px solid #000;
border-left:15px solid transparent;
border-right:15px solid transparent;
margin:100px auto;
}
.left-triangle{
width:0px;
height:0px;
border-right:30px solid #000;
border-top:15px solid transparent;
border-bottom:15px solid transparent;
margin:100px auto;
}
.right-triangle{
width:0px;
height:0px;
border-left:30px solid #000;
border-top:15px solid transparent;
border-bottom:15px solid transparent;
margin:100px auto;
}
</style>
</head>
<body>
<div class="up-triangle"></div>
<div class="down-triangle"></div>
<div class="left-triangle"></div>
<div class="right-triangle"></div>
</body>
</html>

用CSS样式写选择框右侧小三角

标签:auto   border   技术分享   lan   ima   分享图片   com   直接   down   

原文地址:https://www.cnblogs.com/pengxiangchong/p/8310156.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!