<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#dropdown{
width: 0px; /* 宽高设置为0,很重要,否则达不到效果 */
height: 0px;
border: 10px solid yellow;
border-bottom-color: transparent; /* 设置透明背景色 */
border-left-color: transparent;
border-right-color: transparent;
}
</style>
</head>
<body>
<div id="dropdown">
</div>
</body>
</html>
css +html 倒三角 图标
最新推荐文章于 2023-07-15 10:18:50 发布