<!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>
a {
width: 120px;
text-align: center;
text-decoration: none;
color: inherit;
font-size: 20px;
margin: -10px;
position: relative;
display: inline-block;
padding: .3em .1em 0;
}
nav>a:before {
content: '';
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: -1;
background: #ccc;
border: 1px solid black;
border-radius: .5em .5em 0 0;
box-shadow: 0 .15em white inset;
transform: scaleY(1.3) perspective(.5em) rotateX(5deg);
transform-origin: bottom;
}
</style>
</head>
<body>
<nav>
<a href="">1111</a>
<a href="">1111</a>
<a href="">1111</a>
<a href="">1111</a>
</nav>
</body>
</html>
css 梯形选项卡
最新推荐文章于 2023-11-03 14:38:55 发布