zoukankan      html  css  js  c++  java
  • Border-radius属性--设置圆角边框

    border-radius:该属性允许您为元素添加圆角边框!

    div
    {
        border:2px solid;
        border-radius:25px;
    -moz-border-radius:25px; /* 老的 Firefox */ }

    语法

    border-radius: 1-4 length|% / 1-4 length|%;

    注释:按此顺序设置每个 radii 的四个值。如果省略 bottom-left,则与 top-right 相同。如果省略 bottom-right,则与 top-left 相同。如果省略 top-right,则与 top-left 相同。

    示例:

    div{
        border-radius:30px;  // border-radius:30%;
    }


    border-radius:2em
    等价于:
    border-top-left-radius:2em;
    border-top-right-radius:2em;
    border-bottom-right-radius:2em;
    border-bottom-left-radius:2em;


    不规则角:
      border-radius: 2em 1em 4em / 0.5em 3em;
      等价于:
      border-top-left-radius: 2em 0.5em;   border-top-right-radius: 1em 3em;   border-bottom-right-radius: 4em 0.5em;   border-bottom-left-radius: 1em 3em;


  • 相关阅读:
    Springmvc数据验证
    Springmvc文件上传
    BaseController
    说说NSProxy
    Objective-C的动态设计
    UITableView卡片式分组
    RunLoop应用之性能优化
    OC与JS交互之JavaScriptCore
    Core Data 迁移
    一个广告轮播视图的实现
  • 原文地址:https://www.cnblogs.com/wind-wang/p/5979961.html
Copyright © 2011-2022 走看看