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

    }

  • 相关阅读:
    顶点着色器详解 (Vertex Shaders)
    Texture Filter中的Bilinear、Trilinear以及Anistropic Filtering
    mysql远程访问1045的问题解决
    在eclipse上集成安装阿里巴巴代码规约P3C插件
    Mybatis Generator主要配置详解
    redis cluster最简配置
    springboot +redis配置
    redis cluster的conf配置文件配置
    MySQL与Oracle的主要区别
    java EE中使用PO和VO的注意事项
  • 原文地址:https://www.cnblogs.com/mm2015/p/5881313.html
Copyright © 2011-2022 走看看