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%;                    

    }

  • 相关阅读:
    JS 数组排序
    曾经跳过的坑------replace、替换斜杠反斜杠、时间格式化处理
    List排序、集合排序
    git远程覆盖本地的
    整理日期,整理时间段,将日期集合整理为时间段
    当数据库查询in使用超过1000个的处理方式,in超过1000的问题
    oracle一些语法
    idea中git操作
    idea鼠标放上去查看注释,idea查看注释
    idea更新git远程代码,查看代码改动了哪些
  • 原文地址:https://www.cnblogs.com/mm2015/p/5881313.html
Copyright © 2011-2022 走看看