<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>一个简易的排序按钮</title>
<style type="text/css">
.click {
width: 50px;
height: 40px;
display: table-cell;
position: relative;
}
.top {
width: 0;
height: 0;
border-style: solid;
border-width: 0 6px 7px;
border-color: transparent transparent #999999;
position: absolute;
transform: rotate(180deg);
bottom: 14px;
right: 17px;
}
.top:hover {
cursor: pointer;
border-color: transparent transparent #333333;
}
.bottom {
width: 0;
height: 0;
border-style: solid;
border-width: 0 6px 7px;
border-color: transparent transparent #999999;
position: absolute;
top: 10px;
right: 17px;
}
.bottom:hover {
cursor: pointer;
border-color: transparent transparent #333333;
}
</style>
</head>
<body>
<div class="click">
<span class="top"></span>
<span class="bottom"></span>
</div>
</body>
</html>
效果: