<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
display: flex;
justify-content: center;
align-items: center;
height: 95vh;
}
.content{
position: relative;
width: 200px;
height: 200px;
background-color: red;
}
.content::before{
content: "";
position: absolute;
background-color: transparent;
width: 30px;
height: 30px;
border-radius: 50%;
box-shadow: -10px -10px 0 white;
}
</style>
</head>
<body>
<div class="content"></div>
</body>
</html>
不使用border-radius 写圆角(特定使用场景下使用)
最新推荐文章于 2024-08-10 22:43:21 发布