首页 > 开发 > CSS > 正文

用css border实现尖三角的写法(无图片)

2024-07-11 08:38:42
字体:
来源:转载
供稿:网友


<!DOCTYPE HTML>
<html>
<head>
<meta charset=”gbk” />
<style type=”text/css”>
*{margin:0;padding:0;}
body{background:#000;}
.artItLaCorner {
width:20px;
border-color: transparent #fff;
border-style: solid;
border-width: 8px 7px 8px 0px;
margin: 4px 0px 0px 0px;
}
</style>
</head>
<body>
<div class=”artItLaCorner”></div>
</body>
</html>

其他方向的根据自己需求去改变border-width

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表