Mozilla 的CSS建议书写顺序

  1. /* mozilla.org Base Styles
  2.  * maintained by fantasai
  3.  * (classes defined in the Markup Guide - http://mozilla.org/contribute/writing/markup )
  4.  */
  5.  
  6. /* Suggested order:
  7. // 显示属性 (by: Matt)
  8.  * display
  9.  * list-style
  10. // 定位属性 (by: Matt)
  11.  * position
  12.  * float
  13.  * clear
  14. // 盒模型属性 (by: Matt)
  15.  * width
  16.  * height
  17.  * margin
  18.  * padding
  19.  * border
  20. // 颜色属性 (by: Matt)
  21.  * background
  22.  * color
  23. // 文本属性 (by: Matt)
  24.  * font
  25.  * text-decoration
  26.  * text-align
  27.  * vertical-align
  28.  * white-space
  29.  * other text
  30.  * content
  31.  *
  32.  */
  33.  
  34. /* TOC:
  35.    Body
  36.    Random HTML Styles
  37.      Forms
  38.    General Structure
  39.    Navigation
  40.    Quotations
  41.    Comments and Other Asides
  42.    Emphasis
  43.    Computers - General
  44.    Code
  45.    Examples and Figures
  46.    Q and A (FAQ)
  47.    Tables
  48.    Headers
  49.    Meta
  50.    Specific to Products Pages
  51. */

来源:
http://www.mozilla.org/css/base/content.css
http://www.mozilla.org/css/cavendish/content.css

网友评论 (4条)

  1. Neo -

    没想到自己墨守了大部分规范呢

  2. Matt -

    呵呵,只能说是建议,应该还谈不上是规范

  3. maxo -

    学习一下,

  4. Customized Design Solutions -

    Customized Design Solutions…

    I couldn’t understand some parts of this article, but it sounds interesting…

发表评论