博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
css -moz_moz-border-radius(CSS属性)
阅读量:2507 次
发布时间:2019-05-11

本文共 2168 字,大约阅读时间需要 7 分钟。

css -moz

moz-border-radius was Gecko’s equivalent to CSS3’s border-radius property, although it differed in a few respects. The shorthand property allowed web developers to specify rounded borders, or rounded backgrounds if no borders have been defined.

moz-border-radius与Gecko等效于CSS3的border-radius属性,尽管它在某些方面有所不同。 简写属性允许Web开发人员指定圆角边框,如果没有定义边框,则可以指定圆角背景。

; -moz-border-radius was supported as an alias until Gecko 12.0.

。 直到Gecko 12.0为止,一直支持-moz-border-radius作为别名。

In order to conform to the CSS3 standard, Gecko 2.0

为了符合CSS3标准,壁虎2.0

  • changed the handling of values to match the specification. You can specify an ellipse as border on an arbitrary sized element just with border-radius: 50%;

  • made rounded corners clip content and images (if overflow: visible is not set)

    Note: Support for the prefixed version (-moz-border-radius) was removed in Gecko 13.0 (Firefox 13.0 / Thunderbird 13.0 / SeaMonkey 2.10).

    Border-radius

    The border-radius property is a shorthand property that can accept up to four values. The values represent (in order,) the top-left, top-right, bottom-right, and bottom-left corners. As is the case with any shorthand properties that use unit values, any omitted values are inherited from existing ones.

    You can explicitly target individual corners of an element using the longhand syntax. For example:

    .media img {  border-top-left-radius: 20%;  border-top-right-radius: 20%;  border-bottom-right-radius: 20%;  border-bottom-left-radius: 20%;}

    You can see clearly why, in most cases, you’ll use the shorthand syntax. Even if you want to target a single corner, it’s much more efficient to do this instead:

  • 改变了 值以符合规范。 您可以指定一个椭圆作为任意大小的元素上的边框,仅使用border-radius:50%;

  • 使圆角剪辑内容和图像(如果溢出:未设置可见)

    注意:在Gecko 13.0(Firefox 13.0 / Thunderbird 13.0 / SeaMonkey 2.10)中删除了对前缀版本(-moz-border-radius)的支持。

    边界半径

    border-radius属性是一种简写属性,最多可以接受四个值。 这些值代表(按顺序) top-lefttop-rightbottom-rightbottom-left 。 与使用单位值的任何速记属性一样,任何省略的值都将从现有的值中继承。

    您可以使用长期语法显式定位元素的各个角。 例如:

    .media img {  border-top-left-radius: 20%;  border-top-right-radius: 20%;  border-bottom-right-radius: 20%;  border-bottom-left-radius: 20%;}

    您可以清楚地看到为什么在大多数情况下会使用速记语法。 即使您要瞄准一个角落,也可以这样做更有效:

翻译自:

css -moz

转载地址:http://sbrgb.baihongyu.com/

你可能感兴趣的文章
[转]为什么不去读顶级会议上的论文
查看>>
Android模拟按键——源码环境下开发应用程序 ---编译jar(android可执行程序)
查看>>
Android Bluetooth HID实现详解
查看>>
Android AudioRecord Demo[录音并且声称PCM文件]
查看>>
设计模式之---代理模式
查看>>
解决SpringMVC重复提交的问题
查看>>
使用SSH命令行远程登录运行在CloudFoundry上的应用
查看>>
Telnet实现windows远程登录ubuntu
查看>>
Jenkins安装
查看>>
java面试题之osi七层网络模型,五层网络模型,每层分别有哪些协议(阿里面试题)...
查看>>
计算机名词、论文用语
查看>>
RESTful-rest_framework认证组件、权限组件、频率组件-第五篇
查看>>
手机自带功能调用
查看>>
百度搜索引擎取真实地址-python代码
查看>>
java 多线程 Future callable
查看>>
字符串操作练习:星座、凯撒密码、99乘法表
查看>>
Java实现字符串转换十六进制MD5值
查看>>
MySQL数据库8(十七)数据库的备份还原
查看>>
tensorflow 梯度下降以及summary
查看>>
9、接口和抽象类
查看>>