当前位置 博文首页 > 文章内容

    -moz-border-right-colors (Extensions) – CSS 中文开发手册

    作者: 栏目:未分类 时间:2020-07-11 11:01:46

    本站于2023年9月4日。收到“大连君*****咨询有限公司”通知
    说我们IIS7站长博客,有一篇博文用了他们的图片。
    要求我们给他们一张图片6000元。要不然法院告我们

    为避免不必要的麻烦,IIS7站长博客,全站内容图片下架、并积极应诉
    博文内容全部不再显示,请需要相关资讯的站长朋友到必应搜索。谢谢!

    另祝:版权碰瓷诈骗团伙,早日弃暗投明。

    相关新闻:借版权之名、行诈骗之实,周某因犯诈骗罪被判处有期徒刑十一年六个月

    叹!百花齐放的时代,渐行渐远!



    [
  •   CSS 中文开发手册

    -moz-border-right-colors (Extensions) - CSS 中文开发手册

    非标准

    此功能是非标准的,不处于标准轨道上.。不要在面向Web的生产站点上使用它:它并不适用于每个用户。实现之间也可能存在很大的不兼容性,而且这种行为在未来可能会发生变化。

    在火狐等Mozilla应用程序中,使用-moz-border-right-colors属性设置右边框的颜色列表。

    /* Single <color> value */
    -moz-border-right-colors: #f0f0f0;
    
    /* Multiple <color> values */
    -moz-border-right-colors: #f0f0f0 #a0a0a0 #505050 #000000;
    
    /* Global values */
    -moz-border-right-colors: inherit;
    -moz-border-right-colors: initial;
    -moz-border-right-colors: unset;

    当元素的边框大于单个CSS像素时,每行像素都使用此属性中指定的下一个颜色,从外侧开始。这样就不需要嵌套框。如果边框宽于指定颜色的数量,则边框的其余部分是指定的最里面的颜色。

    初始值

    none

    适用元素

    all elements

    是否是继承属性

    no

    适用媒体

    visual

    计算值

    as specified

    动画类型

    discrete

    正规顺序

    the unique non-ambiguous order defined by the formal grammar

    它不适用

    如果border-style是dashed或dotted。表border-collapse: collapse。

    语法

    接受以空格分隔的颜色值列表。

    <color>指定右边框的一行像素的颜色。transparent已验证。查看<color>可能units.noneDefault的值border-color,如果指定,则不绘制颜色或使用颜色。

    正式语法

    [ <color> ]* <color> | nonewhere 
    <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>
    
    where 
    <rgb()> = rgb( [ [ <percentage>{3} | <number>{3} ] [ / <alpha-value> ]? ] | [ [ <percentage>#{3} | <number>#{3} ] , <alpha-value>? ] )
    <rgba()> = rgba( [ [ <percentage>{3} | <number>{3} ] [ / <alpha-value> ]? ] | [ [ <percentage>#{3} | <number>#{3} ] , <alpha-value>? ] )
    <hsl()> = hsl( [ <hue> <percentage> <percentage> [ / <alpha-value> ]? ] | [ <hue>, <percentage>, <percentage>, <alpha-value>? ] )
    <hsla()> = hsla( [ <hue> <percentage> <percentage> [ / <alpha-value> ]? ] | [ <hue>, <percentage>, <percentage>, <alpha-value>? ] )
    where 
    <alpha-value> = <number> | <percentage>
    <hue> = <number> | <angle>

    示例

    <div id="example">Example</div>
    #example {
      padding: 20px;
      background-color: gray;
      border: 10px solid black;
      -moz-border-top-colors: #e00 #c30 #c50 #c60 #c70 #c80 #c90 #ca0 #cb0 #cc0;
      -moz-border-right-colors: red #f60 #f80 #f90 #fa0 #fb0 #fc0 #fd0 #fe0 #ff0;
      -moz-border-bottom-colors: red #f60 #f80 #f90 #fa0 #fb0 #fc0 #fd0 #fe0 #ff0;
      -moz-border-left-colors: #e00 #c30 #c50 #c60 #c70 #c80 #c90 #ca0 #cb0 #cc0;
    }

    规范

    此属性不属于任何规范的一部分。

    浏览器兼容性

    Feature

    Chrome

    Firefox (Gecko)

    Internet Explorer

    Opera

    Safari

    Basic support

    No support

    1.0 (1.7 or earlier)

    No support

    No support

    No support

    Feature

    Android

    Chrome for Android

    Firefox Mobile (Gecko)

    IE Mobile

    Opera Mobile

    Safari Mobile

    Basic support

    No support

    No support

    ?

    No support

    No support

    No support

  •   CSS 中文开发手册
    ]
    转载请保留页面地址:https://www.breakyizhan.com/css/31297.html