zoukankan      html  css  js  c++  java
  • CSS3实现边框锯齿效果

    通过CSS3的linear-gradient实现的

    <div class="bg"></div>

    .bg{

        300px;

        height:50px;

        background:#caca8c;

        background-image:-webkit-gradient(linear,50% 0,0 100%,

                                            from(transparent),

                                            color-stop(.5,transparent),

                                            color-stop(.5,#d86707),

                                            to(#d86707)    

                        ),

                        -webkit-gradient(linear,50% 0,100% 100%,

                                            from(transparent),

                                            color-stop(.5,transparent),

                                            color-stop(.5,#d86707),

                                            to(#d86707)                                            

                        );

        background-image:-moz-linear-gradient(50% 0 -45deg,

                                    transparent,

                                    transparent 50%,

                                    #d86707 50%,

                                    #d86707                                            

                        ),-moz-linear-gradient(50% 0 -135deg,

                                    transparent,

                                    transparent 50%,

                                    #d86707 50%,

                                    #d86707                                            

                        );                                

        background-size:30px 15px;

        background-repeat:repeat-x;

        background-position:0 100%;                    

    }

  • 相关阅读:
    c++求最大公约数、最小公倍数
    五个简单的shell脚本
    微信小程序slot(一)
    小程序详解子传父
    小程序封装组件详解父传子
    小程序生命周期详解
    小程序之confirm-type改变键盘右下角的内容和input按钮详解
    小程序之按钮你不知道的v2
    小程序image图片缩小不变形
    小程序之navigator跳转方式
  • 原文地址:https://www.cnblogs.com/mm2015/p/5881313.html
Copyright © 2011-2022 走看看