zoukankan      html  css  js  c++  java
  • css3标签

    -moz代表firefox浏览器私有属性

    -ms代表ie浏览器私有属性

    -webkit代表chrome、safari私有属性

    -o代表opera私有属性


    border-radius:2em;

    向div元素添加圆角边框,这是一种缩小写法,等价于:

    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:1em 4em;

    border-top-right-radius:1em 3em;

    border-bottom-right-radius:4em 0.5em;

    border-bottom-left-radius:2em 1em;

    css3让框架等属性更加自由。这段可以设置框架的各个位置。

  • 相关阅读:
    Python
    Python
    Python
    Python
    python
    python
    Python
    pure css做的pc登陆界面
    MvcAdmin功能介绍
    pure css做的手机版博客园(我自己博客)
  • 原文地址:https://www.cnblogs.com/liang1/p/4939876.html
Copyright © 2011-2022 走看看