• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Accessibility

      Learn to make the web accessible to all

    • Web Technology

      Web technology reference for developers

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  • Log in
  • Sign up for free
  1. 面向开发者的 Web 技术
  2. CSS:层叠样式表
  3. CSS Table
    • English (US)
    • Deutsch
    • Français
    • 日本語
    • 한국어
    • Русский

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

在本文中

  • 参考
  • 规范
  1. CSS
  2. Beginner's tutorials
  3. Your first website: Styling the content
  4. CSS styling basics
    1. CSS 如何运行
    2. 让我们开始 CSS 的学习之旅
    3. 运用你的新知识
    4. CSS 选择器
    5. 属性选择器
    6. 伪类和伪元素
    7. 关系选择器
    8. 盒模型
    9. 层叠、优先级与继承
    10. CSS 值和单位
    11. 在 CSS 中调整大小
    12. 背景与边框
    13. 溢出的内容
    14. 图像、媒体和表单元素
    15. 样式化表格
    16. 调试 CSS
    17. 基本的 CSS 理解
    18. 创建精美的信纸
    19. 一个漂亮的盒子
  5. CSS text styling
    1. 基本文本和字体样式
    2. 为列表添加样式
    3. 样式化链接
    4. Web 字体
    5. 作业:排版社区大学首页
  6. CSS 布局概述
    1. 介绍 CSS 布局
    2. 浮动
    3. 定位
    4. 弹性盒子
    5. 网格
    6. 响应式设计
    7. 媒体查询入门指南
    8. 作业:基本布局理解
  7. CSS 参考
  8. Modules
    1. CSS anchor positioning
    2. CSS 动画
    3. CSS 背景和边框
    4. CSS Basic User Interface
    5. CSS 盒子对齐
    6. CSS 基础框盒模型
    7. CSS box sizing
    8. CSS cascade and inheritance
    9. CSS 颜色调整
    10. CSS Color
    11. CSS compositing and blending
    12. CSS conditional rules
    13. CSS 局限
    14. CSS 计数器样式
    15. CSS custom properties for cascading variables
    16. CSS display
    17. CSS filter effects
    18. CSS 弹性盒子布局
    19. CSS font loading
    20. CSS 字体
    21. CSS 片段
    22. CSS 生成内容
    23. 网格布局
    24. CSS images
    25. CSS inline layout
    26. CSS lists and counters
    27. CSS 逻辑属性与逻辑值
    28. CSS Masking
    29. 媒体查询
    30. CSS motion path
    31. CSS 多列布局
    32. CSS namespaces
    33. CSS 嵌套
    34. CSS overflow
    35. CSS overscroll behavior
    36. CSS 分页媒体
    37. CSS Positioning
    38. CSS properties and values API
    39. CSS pseudo-elements
    40. CSS ruby layout
    41. CSS scoping
    42. CSS 滚动吸附
    43. CSS scroll-driven animations
    44. CSS Scrollbars
    45. CSS 选择器
    46. CSS shadow parts
    47. CSS 形状
    48. CSS syntax
    49. CSS Table
    50. CSS Text
    51. CSS 文本装饰
    52. CSS Transforms
    53. CSS 过渡
    54. CSS view transitions
    55. CSS Writing Modes CSS 写入模式
    56. CSSOM View
  9. Properties
    1. -moz-*
      1. -moz-float-edge 非标准 已弃用
      2. -moz-force-broken-image-icon 非标准 已弃用
      3. -moz-image-region 非标准
      4. -moz-orient 非标准
      5. -moz-user-focus 非标准 已弃用
      6. -moz-user-input 非标准 已弃用
    2. -webkit-*
      1. -webkit-border-before 非标准
      2. -webkit-box-reflect 非标准
      3. -webkit-line-clamp
      4. -webkit-mask-box-image 非标准
      5. -webkit-mask-composite 非标准
      6. -webkit-mask-position-x 非标准
      7. -webkit-mask-position-y 非标准
      8. -webkit-mask-repeat-x 非标准
      9. -webkit-mask-repeat-y 非标准
      10. -webkit-tap-highlight-color 非标准
      11. -webkit-text-fill-color
      12. -webkit-text-security 非标准
      13. -webkit-text-stroke
      14. -webkit-text-stroke-color
      15. -webkit-text-stroke-width
      16. -webkit-touch-callout 非标准
    3. accent-color
    4. align-*
      1. align-content
      2. align-items
      3. align-self
    5. alignment-baseline
    6. all
    7. anchor-name 实验性
    8. animation-*
      1. animation
      2. animation-composition
      3. animation-delay
      4. animation-direction
      5. animation-duration
      6. animation-fill-mode
      7. animation-iteration-count
      8. animation-name
      9. animation-play-state
      10. animation-range 实验性
      11. animation-range-end 实验性
      12. animation-range-start 实验性
      13. animation-timeline 实验性
      14. animation-timing-function
    9. appearance
    10. aspect-ratio
    11. backdrop-filter
    12. backface-visibility
    13. background-*
      1. background
      2. background-attachment
      3. background-blend-mode
      4. background-clip
      5. background-color
      6. background-image
      7. background-origin
      8. background-position
      9. background-position-x
      10. background-position-y
      11. background-repeat
      12. background-size
    14. block-size
    15. border-*
      1. border
      2. border-block
      3. border-block-color
      4. border-block-end
      5. border-block-end-color
      6. border-block-end-style
      7. border-block-end-width
      8. border-block-start
      9. border-block-start-color
      10. border-block-start-style
      11. border-block-start-width
      12. border-block-style
      13. border-block-width
      14. border-bottom
      15. border-bottom-color
      16. border-bottom-left-radius
      17. border-bottom-right-radius
      18. border-bottom-style
      19. border-bottom-width
      20. border-collapse
      21. border-color
      22. border-end-end-radius
      23. border-end-start-radius
      24. border-image
      25. border-image-outset
      26. border-image-repeat
      27. border-image-slice
      28. border-image-source
      29. border-image-width
      30. border-inline
      31. border-inline-color
      32. border-inline-end
      33. border-inline-end-color
      34. border-inline-end-style
      35. border-inline-end-width
      36. border-inline-start
      37. border-inline-start-color
      38. border-inline-start-style
      39. border-inline-start-width
      40. border-inline-style
      41. border-inline-width
      42. border-left
      43. border-left-color
      44. border-left-style
      45. border-left-width
      46. border-radius
      47. border-right
      48. border-right-color
      49. border-right-style
      50. border-right-width
      51. border-spacing
      52. border-start-end-radius
      53. border-start-start-radius
      54. border-style
      55. border-top
      56. border-top-color
      57. border-top-left-radius
      58. border-top-right-radius
      59. border-top-style
      60. border-top-width
      61. border-width
    16. bottom
    17. box-*
      1. box-align 非标准 已弃用
      2. box-decoration-break
      3. box-direction 非标准 已弃用
      4. box-flex 非标准 已弃用
      5. box-flex-group 非标准 已弃用
      6. box-lines 非标准 已弃用
      7. box-ordinal-group 非标准 已弃用
      8. box-orient 非标准 已弃用
      9. box-pack 非标准 已弃用
      10. box-shadow
      11. box-sizing
    18. break-*
      1. break-after
      2. break-before
      3. break-inside
    19. caption-side
    20. caret-color
    21. clear
    22. clip-*
      1. clip 已弃用
      2. clip-path
      3. clip-rule
    23. color-*
      1. color
      2. color-interpolation
      3. color-interpolation-filters
      4. color-scheme
    24. column-*
      1. column-count
      2. column-fill
      3. column-gap
      4. column-rule
      5. column-rule-color
      6. column-rule-style
      7. column-rule-width
      8. column-span
      9. column-width
    25. columns
    26. contain-*
      1. contain
      2. contain-intrinsic-block-size
      3. contain-intrinsic-height
      4. contain-intrinsic-inline-size
      5. contain-intrinsic-size
      6. contain-intrinsic-width
    27. container-*
      1. container
      2. container-name
      3. container-type
    28. content
    29. content-visibility
    30. counter-*
      1. counter-increment
      2. counter-reset
      3. counter-set
    31. cursor
    32. cx
    33. cy
    34. d
    35. direction
    36. display
    37. dominant-baseline
    38. empty-cells
    39. field-sizing 实验性
    40. fill-*
      1. fill
      2. fill-opacity
      3. fill-rule
    41. filter
    42. flex-*
      1. flex
      2. flex-basis
      3. flex-direction
      4. flex-flow
      5. flex-grow
      6. flex-shrink
      7. flex-wrap
    43. float
    44. flood-color
    45. flood-opacity
    46. font-*
      1. font
      2. font-family
      3. font-feature-settings
      4. font-kerning
      5. font-language-override
      6. font-optical-sizing
      7. font-palette
      8. font-size
      9. font-size-adjust
      10. font-smooth 非标准
      11. font-stretch
      12. font-style
      13. font-synthesis
      14. font-synthesis-position 实验性
      15. font-synthesis-small-caps
      16. font-synthesis-style
      17. font-synthesis-weight
      18. font-variant
      19. font-variant-alternates
      20. font-variant-caps
      21. font-variant-east-asian
      22. font-variant-emoji
      23. font-variant-ligatures
      24. font-variant-numeric
      25. font-variant-position
      26. font-variation-settings
      27. font-weight
    47. forced-color-adjust
    48. gap
    49. grid-*
      1. grid
      2. grid-area
      3. grid-auto-columns
      4. grid-auto-flow
      5. grid-auto-rows
      6. grid-column
      7. grid-column-end
      8. grid-column-start
      9. grid-row
      10. grid-row-end
      11. grid-row-start
      12. grid-template
      13. grid-template-areas
      14. grid-template-columns
      15. grid-template-rows
    50. hanging-punctuation
    51. height
    52. hyphenate-character
    53. hyphenate-limit-chars
    54. hyphens
    55. image-*
      1. image-orientation
      2. image-rendering
      3. image-resolution 实验性
    56. initial-letter
    57. inline-size
    58. inset-*
      1. inset
      2. inset-block
      3. inset-block-end
      4. inset-block-start
      5. inset-inline
      6. inset-inline-end
      7. inset-inline-start
    59. interpolate-size 实验性
    60. isolation
    61. justify-*
      1. justify-content
      2. justify-items
      3. justify-self
    62. left
    63. letter-spacing
    64. lighting-color
    65. line-*
      1. line-break
      2. line-height
      3. line-height-step 实验性
    66. list-*
      1. list-style
      2. list-style-image
      3. list-style-position
      4. list-style-type
    67. margin-*
      1. margin
      2. margin-block
      3. margin-block-end
      4. margin-block-start
      5. margin-bottom
      6. margin-inline
      7. margin-inline-end
      8. margin-inline-start
      9. margin-left
      10. margin-right
      11. margin-top
      12. margin-trim 实验性
    68. marker-*
      1. marker
      2. marker-end
      3. marker-mid
      4. marker-start
    69. mask-*
      1. mask
      2. mask-border
      3. mask-border-mode
      4. mask-border-outset
      5. mask-border-repeat
      6. mask-border-slice
      7. mask-border-source
      8. mask-border-width
      9. mask-clip
      10. mask-composite
      11. mask-image
      12. mask-mode
      13. mask-origin
      14. mask-position
      15. mask-repeat
      16. mask-size
      17. mask-type
    70. math-*
      1. math-depth
      2. math-shift 实验性
      3. math-style
    71. max-*
      1. max-block-size
      2. max-height
      3. max-inline-size
      4. max-width
    72. min-*
      1. min-block-size
      2. min-height
      3. min-inline-size
      4. min-width
    73. mix-blend-mode
    74. object-fit
    75. object-position
    76. offset-*
      1. offset
      2. offset-anchor
      3. offset-distance
      4. offset-path
      5. offset-position
      6. offset-rotate
    77. opacity
    78. order
    79. orphans
    80. outline-*
      1. outline
      2. outline-color
      3. outline-offset
      4. outline-style
      5. outline-width
    81. overflow-*
      1. overflow
      2. overflow-anchor
      3. overflow-block
      4. overflow-clip-margin
      5. overflow-inline
      6. overflow-wrap
      7. overflow-x
      8. overflow-y
    82. overlay 实验性
    83. overscroll-*
      1. overscroll-behavior
      2. overscroll-behavior-block
      3. overscroll-behavior-inline
      4. overscroll-behavior-x
      5. overscroll-behavior-y
    84. padding-*
      1. padding
      2. padding-block
      3. padding-block-end
      4. padding-block-start
      5. padding-bottom
      6. padding-inline
      7. padding-inline-end
      8. padding-inline-start
      9. padding-left
      10. padding-right
      11. padding-top
    85. page-*
      1. page
      2. page-break-after
      3. page-break-before
      4. page-break-inside
    86. paint-order
    87. perspective
    88. perspective-origin
    89. place-*
      1. place-content
      2. place-items
      3. place-self
    90. pointer-events
    91. position-*
      1. position
      2. position-anchor 实验性
      3. position-area 实验性
      4. position-try 实验性
      5. position-try-fallbacks 实验性
      6. position-try-order 实验性
      7. position-visibility 实验性
    92. print-color-adjust
    93. quotes
    94. r
    95. resize
    96. right
    97. rotate
    98. row-gap
    99. ruby-align
    100. ruby-position
    101. rx
    102. ry
    103. scale
    104. scroll-*
      1. scroll-behavior
      2. scroll-margin
      3. scroll-margin-block
      4. scroll-margin-block-end
      5. scroll-margin-block-start
      6. scroll-margin-bottom
      7. scroll-margin-inline
      8. scroll-margin-inline-end
      9. scroll-margin-inline-start
      10. scroll-margin-left
      11. scroll-margin-right
      12. scroll-margin-top
      13. scroll-padding
      14. scroll-padding-block
      15. scroll-padding-block-end
      16. scroll-padding-block-start
      17. scroll-padding-bottom
      18. scroll-padding-inline
      19. scroll-padding-inline-end
      20. scroll-padding-inline-start
      21. scroll-padding-left
      22. scroll-padding-right
      23. scroll-padding-top
      24. scroll-snap-align
      25. scroll-snap-stop
      26. scroll-snap-type
      27. scroll-timeline 实验性
      28. scroll-timeline-axis 实验性
      29. scroll-timeline-name 实验性
    105. scrollbar-*
      1. scrollbar-color
      2. scrollbar-gutter
      3. scrollbar-width
    106. shape-*
      1. shape-image-threshold
      2. shape-margin
      3. shape-outside
      4. shape-rendering
    107. stop-color
    108. stop-opacity
    109. stroke-*
      1. stroke
      2. stroke-dasharray
      3. stroke-dashoffset
      4. stroke-linecap
      5. stroke-linejoin
      6. stroke-miterlimit
      7. stroke-opacity
      8. stroke-width
    110. tab-size
    111. table-layout
    112. text-*
      1. text-align
      2. text-align-last
      3. text-anchor
      4. text-combine-upright
      5. text-decoration
      6. text-decoration-color
      7. text-decoration-line
      8. text-decoration-skip 实验性
      9. text-decoration-skip-ink
      10. text-decoration-style
      11. 文本装饰线厚度 (粗细)
      12. text-emphasis
      13. text-emphasis-color
      14. text-emphasis-position
      15. text-emphasis-style
      16. text-indent
      17. text-justify
      18. text-orientation
      19. text-overflow
      20. 文本渲染
      21. text-shadow
      22. text-size-adjust 实验性
      23. text-spacing-trim 实验性
      24. text-transform
      25. text-underline-offset
      26. text-underline-position
      27. text-wrap
      28. text-wrap-mode
      29. text-wrap-style
    113. timeline-scope 实验性
    114. top
    115. touch-action
    116. transform-*
      1. transform
      2. transform-box
      3. transform-origin
      4. transform-style
    117. transition-*
      1. transition
      2. transition-behavior
      3. transition-delay
      4. transition-duration
      5. transition-property
      6. transition-timing-function
    118. translate
    119. unicode-bidi
    120. user-modify 非标准 已弃用
    121. user-select
    122. vector-effect
    123. vertical-align
    124. view-*
      1. view-timeline 实验性
      2. view-timeline-axis 实验性
      3. view-timeline-inset 实验性
      4. view-timeline-name 实验性
      5. view-transition-name
    125. visibility
    126. white-space
    127. white-space-collapse
    128. widows
    129. width
    130. will-change
    131. word-break
    132. word-spacing
    133. writing-mode
    134. x
    135. y
    136. z-index
    137. zoom
  10. Selectors
    1. & 嵌套选择器
    2. 属性选择器
    3. 类选择器
    4. ID 选择器
    5. 类型选择器
    6. 通配选择器
  11. 关系选择器
    1. 子组合器
    2. 列组合器 实验性
    3. 后代选择器
    4. Namespace separator
    5. 接续兄弟组合器
    6. 选择器列表
    7. 后续兄弟选择器
  12. Pseudo-classes
    1. :-moz-broken 非标准 已弃用
    2. :-moz-drag-over 非标准
    3. :-moz-first-node 实验性 非标准
    4. :-moz-handler-blocked 非标准
    5. :-moz-handler-crashed 非标准
    6. :-moz-handler-disabled 非标准
    7. :-moz-last-node 实验性 非标准
    8. :-moz-loading 非标准
    9. :-moz-locale-dir(ltr) 非标准
    10. :-moz-locale-dir(rtl) 非标准
    11. :blank 非标准
    12. :-moz-submit-invalid 非标准
    13. :-moz-suppressed 非标准
    14. :-moz-user-disabled 非标准
    15. :-moz-window-inactive 非标准
    16. :active
    17. :any-link
    18. :autofill
    19. :blank 实验性
    20. :buffering
    21. :checked
    22. :current 实验性
    23. :default
    24. :defined
    25. :dir()
    26. :disabled
    27. :empty
    28. :enabled
    29. :first
    30. :first-child
    31. :first-of-type
    32. :focus
    33. :focus-visible
    34. :focus-within
    35. :fullscreen
    36. :future
    37. :has-slotted 实验性
    38. :has()
    39. :host
    40. :host-context()
    41. :host()
    42. :hover
    43. :in-range
    44. :indeterminate
    45. :invalid
    46. :is()
    47. :lang()
    48. :last-child
    49. :last-of-type
    50. :left
    51. :link
    52. :local-link 实验性
    53. :modal
    54. :muted
    55. :not()
    56. :nth-child()
    57. :nth-last-child
    58. :nth-last-of-type
    59. :nth-of-type
    60. :only-child
    61. :only-of-type
    62. :optional
    63. :out-of-range
    64. :past
    65. :paused
    66. :picture-in-picture
    67. :placeholder-shown
    68. :playing
    69. :popover-open
    70. :read-only
    71. :read-write
    72. :required
    73. :right
    74. :root
    75. :scope
    76. :seeking
    77. :stalled
    78. :state()
    79. :target
    80. :target-within 实验性
    81. :user-invalid
    82. :user-valid
    83. :valid
    84. :visited
    85. :volume-locked
    86. :where()
  13. Pseudo-elements
    1. ::-moz-color-swatch 非标准
    2. ::-moz-focus-inner 实验性 非标准
    3. ::-moz-list-bullet 实验性 非标准
    4. ::-moz-list-number 实验性 非标准
    5. ::-moz-meter-bar 非标准
    6. ::-moz-progress-bar 实验性 非标准
    7. ::-moz-range-progress 非标准
    8. ::-moz-range-thumb 非标准
    9. ::-moz-range-track 非标准
    10. ::-webkit-inner-spin-button 非标准
    11. ::-webkit-meter-bar 非标准 已弃用
    12. ::-webkit-meter-even-less-good-value 非标准
    13. ::-webkit-meter-inner-element 非标准
    14. ::-webkit-meter-optimum-value 非标准
    15. ::-webkit-meter-suboptimum-value 非标准
    16. ::-webkit-progress-bar 非标准
    17. ::-webkit-progress-inner-element 非标准
    18. ::-webkit-progress-value 非标准
    19. ::-webkit-scrollbar 非标准
    20. ::-webkit-search-cancel-button 非标准
    21. ::-webkit-search-results-button 非标准
    22. ::-webkit-slider-runnable-track 实验性 非标准
    23. ::-webkit-slider-thumb 实验性 非标准
    24. ::after
    25. ::backdrop
    26. ::before
    27. ::cue (:cue)
    28. ::details-content 实验性
    29. ::file-selector-button
    30. ::first-letter
    31. ::first-line (:first-line)
    32. ::grammar-error
    33. ::highlight()
    34. ::marker
    35. ::part()
    36. ::placeholder
    37. ::selection
    38. ::slotted()
    39. ::spelling-error
    40. ::target-text
    41. ::view-transition
    42. ::view-transition-group
    43. ::view-transition-image-pair
    44. ::view-transition-new
    45. ::view-transition-old
  14. At-rules
    1. @charset
    2. @color-profile
    3. @container
    4. @counter-style
    5. @document 非标准 已弃用
    6. @font-face
    7. @font-feature-values
    8. @font-palette-values
    9. @import
    10. @keyframes
    11. @layer
    12. @media
    13. @namespace
    14. @page
    15. @position-try 实验性
    16. @property
    17. @scope
    18. @starting-style
    19. @supports
    20. @view-transition
  15. Functions
    1. -moz-image-rect 非标准 已弃用
    2. abs()
    3. acos()
    4. anchor-size() 实验性
    5. anchor() 实验性
    6. asin()
    7. atan()
    8. atan2()
    9. attr
    10. calc-size() 实验性
    11. calc()
    12. clamp()
    13. cos()
    14. counter()
    15. counters()
    16. cross-fade()
    17. element 实验性
    18. env()
    19. exp()
    20. fit-content()
    21. hypot()
    22. log()
    23. max()
    24. min()
    25. minmax()
    26. mod()
    27. pow()
    28. ray()
    29. rem()
    30. repeat()
    31. round()
    32. sign()
    33. sin()
    34. sqrt()
    35. symbols()
    36. tan()
    37. url()
    38. var()
  16. Types
    1. <absolute-size>
    2. <alpha-value>
    3. <angle-percentage>
    4. <angle>
    5. <baseline-position>
    6. <basic-shape>
    7. <blend-mode>
    8. <box-edge>
    9. <calc-keyword>
    10. <calc-sum>
    11. <color-interpolation-method>
    12. <color>
    13. <content-distribution>
    14. <content-position>
    15. <custom-ident>
    16. <dashed-ident>
    17. dimension
    18. <display-box>
    19. <display-inside>
    20. <display-internal>
    21. <display-legacy>
    22. <display-listitem>
    23. <display-outside>
    24. <easing-function>
    25. <filter-function>
    26. <flex>
    27. <frequency-percentage>
    28. <frequency>
    29. <generic-family>
    30. <gradient>
    31. <hex-color>
    32. <hue-interpolation-method>
    33. <hue>
    34. <ident>
    35. <image>
    36. <integer>
    37. <length-percentage>
    38. <length>
    39. <line-style>
    40. <named-color>
    41. <number>
    42. <overflow-position>
    43. <overflow>
    44. <percentage>
    45. <position-area> 实验性
    46. <position>
    47. <ratio>
    48. <relative-size>
    49. <resolution>
    50. <self-position>
    51. <shape> 已弃用
    52. <string>
    53. <system-color>
    54. <time-percentage>
    55. <time>
    56. transform-function
    57. <url>
  17. 指南
  18. 动画
    1. 使用 CSS 动画
  19. 背景和边框
    1. 多个背景的应用
    2. 重设背景图片的大小
  20. Box alignment
    1. 块布局中的盒对齐方式
    2. 弹性盒布局中的盒对齐方式
    3. Box alignment in grid layout
    4. Box alignment in multi-column layout
  21. 盒模型
    1. CSS 基础框盒模型介绍
    2. 掌握外边距折叠
  22. 颜色
    1. Applying_color_to_HTML_elements
    2. Color values
    3. Using relative colors
    4. Using color wisely
    5. Accessibility_Understanding_colors_and_luminance"
    6. Web 无障碍:色彩对比度
  23. 多列
    1. Basic Concepts of Multicol
    2. 多列布局的样式
    3. Spanning and balancing columns
    4. 处理 Multicol 中的溢出
    5. Handling content breaks in multi-column layout
  24. 条件规则
    1. 使用特性查询
  25. Containment
    1. 使用 CSS 局限
    2. CSS 容器查询
    3. Using container size and style queries
  26. CSS 对象模型视图
    1. 坐标系
  27. 弹性盒布局
    1. flex 布局的基本概念
    2. 弹性盒子与其他布局方法的联系
    3. 对齐弹性容器中的项目
    4. Flex 项排序
    5. 控制弹性元素在主轴上的比例
    6. 掌握弹性物件的包装
    7. 弹性盒子的典型用例
  28. 流式布局
    1. 常规流中的块和内联布局
    2. In Flow and Out of Flow
    3. Introduction to formatting contexts 格式化上下文简介
    4. 流布局和书写模式
    5. 流布局和溢出
  29. 字体
    1. OpenType 字体特性指南
    2. Variable fonts guide
  30. 网格布局
    1. 网格布局的基本概念
    2. 网格布局和其他布局方法的联系
    3. CSS 网格中基于线的定位
    4. 网格模板区域
    5. 使用命名线布局
    6. CSS 网格布局中的自动定位
    7. 网格布局中的盒模型对齐
    8. CSS 网格,逻辑值和书写模式
    9. CSS 网格布局和无障碍
    10. CSS 网格布局和渐进增强
    11. 利用 CSS 网格布局实现常用布局
    12. Subgrid
    13. Masonry layout 实验性
  31. 图片
    1. 使用 CSS 渐变
  32. 列表和计数器
    1. 使用 CSS 计数器
    2. 使列表缩进一致
  33. 逻辑属性
    1. 逻辑属性与逻辑值的基本概念
    2. 用于浮动和定位的逻辑属性
    3. 用于外边距、边框和内边距的逻辑属性
    4. 逻辑尺寸属性
  34. 数学函数
    1. Using CSS math functions
  35. 媒体查询
    1. 使用媒体查询
    2. Using media queries for accessibility
    3. 使用编程方法测试媒体查询
    4. 打印
  36. 嵌套样式规则
    1. 使用 CSS 嵌套
    2. CSS at 规则嵌套
    3. CSS 嵌套与优先级
  37. 定位
    1. 理解 CSS 的 z-index 属性
  38. 滚动吸附
    1. 滚动吸附的基本概念
  39. 形状
    1. CSS 的图形(Shape)概览
    2. 使用 box 值指定形状
    3. Basic shapes with shape-outside
    4. Shapes from images
  40. 文本
    1. Wrapping and breaking text
  41. 变换
    1. 使用 CSS 变换
  42. 过渡
    1. 使用 CSS 过渡
  43. CSS 布局手册
    1. 指南:媒体对象
    2. 列布局
    3. 居中一个元素
    4. 粘性页脚
    5. 分离式导航菜单
    6. 面包屑导航
    7. List group with badges
    8. Pagination
    9. 卡片
    10. Grid wrapper
  44. 工具
    1. 色彩选择工具
    2. Box-shadow 生成器
    3. Border-image 生成器
    4. 圆角边框生成器

在本文中

  • 参考
  • 规范

CSS Table

CSS Table 是一个定义如何展示表格数据的 CSS 模块。

参考

属性

  • border-collapse
  • border-spacing
  • caption-side
  • empty-cells
  • table-layout
  • vertical-align

规范

Specification
Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification

Help improve MDN

Learn how to contribute.

This page was last modified on 2023年5月26日 by MDN contributors.

View this page on GitHub • Report a problem with this content
MDN logo

Your blueprint for a better internet.

  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
Mozilla logo
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.