CSS - Full diagonal transparent corner cut on div
问题 How can I cut the full corner off a div, keeping it transparent. This is what I've tried: .well-corner { min-height: 20px; padding: 19px; margin-bottom: 20px; background: rgba(8, 12, 23, 0.8); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); border-top-right-radius: 50px; } .well-link { float: right; } .diagonal { float: left; width: 50px; transform: skewX(-10deg); } <div class="well-corner clearfix"> <div class="diagonal"> </div> <a