<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.siFrame {
width: 200px;
height: 100px;
margin: auto;
background: linear-gradient(to right, #4980D9, #4980D9) left top no-repeat,
linear-gradient(to bottom, #4980D9, #4980D9) left top no-repeat,
linear-gradient(to left, #4980D9, #4980D9) right top no-repeat,
linear-gradient(to bottom, #4980D9, #4980D9) right top no-repeat,
linear-gradient(to right, #4980D9, #4980D9) left bottom no-repeat,
linear-gradient(to top, #4980D9, #4980D9) left bottom no-repeat,
linear-gradient(to left, #4980D9, #4980D9) right bottom no-repeat,
linear-gradient(to top, #4980D9, #4980D9) right bottom no-repeat;
/* 第一个, 控制左边竖线的宽和高 */
/* 第二个, 控制左边横线的宽和高 */
/* 第三个, 控制右边边竖线的宽和高 */
/* 第四个, 控制右边边横线的宽和高 */
background-size: 2px 15px, 15px 2px, 2px 15px, 15px 2px;
}
</style>
</head>
<body>
<div class="siFrame">111</div>
</body>
</html>
css 生成4个小角
最新推荐文章于 2024-01-03 12:10:32 发布