Negative Border Radius in CSS?

前端 未结 3 1674

I\'m trying to do CSS to make a div that looks like this:

I\'m pretty much started with this:

.player {
    width: 480px;
    height: 80px;
    bord         


        
3条回答
  •  一个人的身影
    2020-12-09 13:49

    .wrapper {
        width: 500px;
        height: 103px;
        background-color: red;
        padding-top: 15px;
    }
    
    .player {
        width: 480px;
        height: 83px;
        margin-left: 10px;
        border-top-right-radius: 40px;
        border-bottom-right-radius: 40px;
        border: 1px solid black;
        border-left: none;
        background-color: blue;
        -webkit-mask-image: radial-gradient(circle at left, transparent 0, transparent 40px, black 41px);
    }

提交回复
热议问题