CSS

CSS文本 | CSS Text

CSS Text

CSS Text是CSS的一个模块,它定义了如何执行文本的相关操作,如换行,对齐,空白处理和文本转换。

参考

特性

  • hyphens

  • letter-spacing

  • line-break

  • overflow-wrap

  • tab-size

  • text-align

  • text-align-last

  • text-indent

  • text-size-adjust

  • text-transform

  • white-space

  • word-break

  • word-spacing

  • word-wrap

指导手册

暂无。

规范

SpecificationStatusComment
CSS Logical Properties Level 1Editor's DraftUpdates some properties to be independent of the directionality of the text.
CSS Text Level 3Working Draft
CSS Level 2 (Revision 1)Recommendation
CSS Level 1RecommendationInitial definition

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support1.01.0 (1.7 or earlier)33.51.0 (85)

FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support(Yes)(Yes)(Yes)(Yes)1.0 (85)