<div class="test"></div>
<style type="text/css">
.test {
position: relative;
width: 400px;
height: 200px;
border-radius: 10px;
margin-left: 40px;
background: url("test.jpg") -20px 0 no-repeat;
background-size: 420px auto;
}
.test:after {
content: '';
position: absolute;
top: 30px;
left: -40px;
border: solid #fff;
border-width: 10px 20px;
border-right-color: transparent;
background: inherit;
background-clip: border-box;
background-origin: border-box;
background-position: 20px -30px;
}
</style>
3 回答914 阅读✓ 已解决
4 回答1.3k 阅读✓ 已解决
2 回答929 阅读✓ 已解决
2 回答1.5k 阅读✓ 已解决
2 回答1.3k 阅读✓ 已解决
2 回答902 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
纯色背景完美,图像背景有瑕疵,左边三角内图像是扭曲的。有时间再寻找解决方法吧。

实际效果代码