您好,登錄后才能下訂單哦!
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>css3繪制三角形</title>
<style type="text/css">
div{
margin-bottom: 10px;
}
#SJX_UP{
width: 0px;
height: 0px;
overflow: hidden;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
/*兼容IE6*/
_border-left: 20px solid #fff;
_border-right: 20px solid #fff;
border-bottom: 20px solid red;
}
#SJX_DOWN{
width: 0px;
height: 0px;
overflow: hidden;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid red;
}
#SJX_RIGHT{
width: 0px;
height: 0px;
overflow: hidden;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-left: 20px solid red;
}
#SJX_LEFT{
width: 0px;
height: 0px;
overflow: hidden;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-right: 20px solid red;
}
</style>
</head>
<body>
<div id="SJX_UP"></div>
<div id="SJX_DOWN"></div>
<div id="SJX_LEFT"></div>
<div id="SJX_RIGHT"></div>
</body>
</html>
20px哪里可以自行調節大小
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。