純css寫下拉箭頭,三角,半圓。

<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">
<title>三角</title>
<style type="text/css">
/*空心下拉箭頭*/
.triangle .content{
width: 10px;
height: 10px;
border:#666 solid;
border-width: 1px 1px 0 0;
transform: rotate(135deg);
margin-bottom: 10px;
}
/*實心三角*/
.triangle2 .content{
width: 0px;
height: 10px;
border: 10px solid;
border-color:  #666 transparent transparent transparent;
}
/*空心圓*/
.circle .content{
width: 10px;
height: 20px;
border: 1px solid #666;
border-radius: 100% 0 0 100%/50%;
border-right: none;
margin-bottom: 10px;
}
/*實心圓*/
.circle2 .content{
width: 10px;
height: 20px;
border: 1px solid #999;
border-radius: 100% 0 0 100%/50%;
border-right: none;
background-color: #999;
}
</style>
</head>
<body>
<div class="triangle">
<div class="content"></div>
</div>
<div class="triangle2">
<div class="content"></div>
</div>
<!--空心圓-->
<div class="circle">
<div class="content"></div>
</div>
<!--實心圓-->
<div class="circle2">
<div class="content"></div>
</div>
</body>
</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章