【学习笔记】CSS的显示 & 框 & 可继承的属性

显示

属性为display

含义
block(默认) 块级元素
inline 行内元素
inline-block 行内块元素

属性 含义
height, width ~px 高,宽
padding ~px 内边框
border ~px {solid, dotted(点线), dashed(虚线), } {color} 边框
margin ~px 外边框

可继承

  • azimuth
  • border-collapse
  • border-spacing
  • caption-side
  • color
  • cursor
  • direction
  • elevation
  • empty-cells
  • font-family
  • font-size
  • font-style
  • font-variant
  • font-weight
  • font
  • letter-spacing
  • line-height
  • list-style-image
  • list-style-position
  • list-style-type
  • list-style
  • orphans
  • pitch-range
  • pitch
  • quotes
  • richness
  • speak-header
  • speak-numeral
  • speak-punctuation
  • speak
  • speech-rate
  • stress
  • text-align
  • text-indent
  • text-transform
  • visibility
  • voice-family
  • volume
  • white-space
  • widows
  • word-spacing

【学习笔记】CSS的显示 & 框 & 可继承的属性
https://www.qwqwq.com.cn/note/css-display/
Author
Stephen Zeng
Posted on
June 19, 2024
Licensed under