ChefIsAwesome
V2EX  ›  问与答

英语里的哪个词能描述 css 里 transform, color 那样的复合属性

  •  
  •   ChefIsAwesome · Aug 26, 2015 · 2528 views
    This topic created in 3920 days ago, the information mentioned may be changed or developed.

    transform 是由 scale, rotate, translate 三个子属性组成的。
    color 如果用的 rgb 格式的话,可以看做是 r, g, b 三个子属性。

    英语里怎么描述像他们那样的属性。我想着是 bundle 或者 collection ,不知道用哪个好点。

    3 replies    2015-08-27 04:12:19 +08:00
    KaoN
        1
    KaoN  
       Aug 26, 2015
    property ?
    learnshare
        2
    learnshare  
       Aug 26, 2015
    color 只有一个参数,即使用 rgb (r, g, b ),也是获取这个函数的返回值而已;
    border: solid 1px #0AF; 这种才是复合属性吧,貌似是 'shorthand' (缩写)
    https://developer.mozilla.org/en-US/docs/Web/CSS/border
    statm
        3
    statm  
       Aug 27, 2015
    composite
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5740 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 02:07 · PVG 10:07 · LAX 19:07 · JFK 22:07
    ♥ Do have faith in what you're doing.