<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.menu-list {padding-left:1em;width:200px;color:#FFF;background-color:#369;}
.menu-list .menu {position:relative;line-height:2em;text-align:center;}
.menu-list .menu.active {color:#369;border-top-left-radius:1em;border-bottom-left-radius:1em;background-color:#FFF;}
.menu-list .menu.active:before {content:'\\200B';position:absolute;height:1em;width:1em;right:0;top:-1em;border-bottom-right-radius:1em;box-shadow:1em 1em 0 1em #FFF;}
.menu-list .menu.active:after {content:'\\200B';position:absolute;height:1em;width:1em;right:0;bottom:-1em;border-top-right-radius:1em;box-shadow:1em -1em 0 1em #FFF;}
</style>
</head>
<body>
<div class="menu-list">
<div class="menu">应用</div>
<div class="menu">订单</div>
<div class="menu">设置</div>
<div class="menu active">官网</div>
<div class="menu">关于我们</div>
</div>
</body>
</html>
https://codepen.io/learningcn/pen/MWyqJYe
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
* { padding: 0; margin: 0; border: 0; font-family: Helvetica, sans-serif; }
aside { background: #5993FD; width: 200px; height: 100vh; }
ul { padding-left: 10px; }
li { list-style: none; position: relative; color: #fff; height: 60px; line-height: 60px; font-size: 24px; box-sizing: border-box; padding: 0 0 0 30px; }
li.active { background: #fff; color: #5993FD; border-radius: 30px 0 0 30px; }
li.active:before,
li.active:after { content: ""; background: #5993FD; width: 30px; height: 30px; position: absolute; right: 0; }
li.active:before { top: -30px; border-radius: 0 0 30px 0; box-shadow: 15px 15px 0 15px #fff; }
li.active:after { bottom: -30px; border-radius: 0 30px 0 0; box-shadow: 15px -15px 0 15px #fff; }
</style>
</head>
<body>
<aside>
<nav>
<ul>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fouth</li>
<li class="active">Fifth</li>
</ul>
</nav>
</aside>
</body>
</html>
border-top-left-radius
border-top-right-radius
border-bottom-left-radius
border-bottom-right-radius
5 回答1.1k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
3 回答1.3k 阅读✓ 已解决
2 回答1.4k 阅读✓ 已解决
4 回答1.8k 阅读
3 回答1.3k 阅读✓ 已解决
2 回答1.8k 阅读✓ 已解决