答案 0 :(得分:3)
尝试使用位置:绝对和转换:倾斜组合
Stack Snippet
ul.menu {
font: 13px Verdana;
list-style: none;
padding: 20px 0 0 60px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
ul.menu>li {
position: relative;
margin-bottom: 5px;
padding: 10px;
background: #808080c4;
color: #fff;
}
ul.menu>li:before {
content: "";
position: absolute;
width: 40px;
left: -40px;
top: 0;
bottom: 0;
background: grey;
transform: skewY(30deg);
transform-origin: right;
}
ul.menu>li:hover,
ul.menu>li:hover:before {
background: red;
cursor: pointer;
}

<ul class="menu">
<li>Menu One</li>
<li>Menu Two</li>
<li>Menu Three</li>
<li>Menu Four</li>
<li>Menu Five</li>
<li>Menu Six</li>
</ul>
&#13;