美文网首页
4.12 (案例)

4.12 (案例)

作者: 柒月柒日晴7 | 来源:发表于2017-06-08 00:26 被阅读0次
    Paste_Image.png
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <style>
            div { width:100px; height:100px; -webkit-transform:rotate(120deg);}
            div:before {content:""; display:block; width:100px;height:50px; margin-top:10px; padding:10px; padding-bottom:0; box-sizing:border-box;
                border-top-left-radius:50px;
                border-top-right-radius:50px;
                background:-webkit-gradient(
                    linear,
                    left top,
                    right top,
                    color-stop(0,#fff),
                    color-stop(1,#fff)
                ),-webkit-gradient(
                    linear,
                    left top,
                    right top,
                    color-stop(0,red),
                    color-stop(0.6,green),
                    color-stop(1,yellow)
                );
                background-clip:content-box,padding-box;
            }
            div:after {content:""; display:block; width:100px;height:50px; padding:10px; padding-top:0; box-sizing:border-box;
                border-bottom-left-radius:50px;
                border-bottom-right-radius:50px;
                background:-webkit-gradient(
                    linear,
                    left top,
                    right top,
                    color-stop(0,#fff),
                    color-stop(1,#fff)
                ),-webkit-gradient(
                    linear,
                    left top,
                    right top,
                    color-stop(0,#fff),
                    color-stop(0.6,red),
                    color-stop(1,yellow)
                );
                background-clip:content-box,padding-box;
            }
        </style>
    </head>
    <body>
        <div></div>
    </body>
    </html>
    

    相关文章

      网友评论

          本文标题:4.12 (案例)

          本文链接:https://www.haomeiwen.com/subject/hrhzfxtx.html