.slide_bar {
width: 180px;
position: absolute;
z-index: 99;
right: 30px;
top: 700px;
}
.slide_bar ul li a {
display: block;
width: 185px;
height: 36px;
line-height: 36px;
text-align: center;
font-size: 18px;
color: #fff;
}
.slide_bar ul li:hover a {
color: #0d1656;
}
.slide_bar ul li:nth-child(odd) {
background: #588efd;
background: linear-gradient(-70deg, transparent 12px, #588efd 0) right,
linear-gradient(70deg, transparent 12px, #588efd 0) left;
background-size: 50% 100%;
background-repeat: no-repeat;
}
.slide_bar ul li:nth-child(even) {
background: #52b8ff;
background: linear-gradient(-110deg, transparent 12px, #52b8ff 0) right,
linear-gradient(110deg, transparent 12px, #52b8ff 0) left;
background-size: 50% 100%;
background-repeat: no-repeat;
}
使用css3的线性渐变实现多边形边框,斜切那部分会有毛边,不是很美观,请问怎么解决?
css3 club斜切角文章