text-autospace: normal 中英文自动加间距

作者:Administrator 发布时间: 2025-10-24 阅读量:7 评论数:0
text-autospace: normal;
text-autospace: no-autospace;
text-autospace: ideograph-alpha;
text-autospace: ideograph-numeric;
text-autospace: punctuation;
text-autospace: insert;
text-autospace: replace;
text-autospace: ideograph-alpha ideograph-numeric punctuation;
text-autospace: ideograph-alpha ideograph-numeric;
text-autospace: ideograph-alpha ideograph-numeric insert;
text-autospace: auto;

/* 全局值 */
text-autospace: inherit;
text-autospace: initial;
text-autospace: revert;
text-autospace: revert-layer;
text-autospace: unset;

  • normal:默认行为,会自动为常见混排情境插入空格(例如汉字和英文、数字之间)。

  • no-autospace:关闭自动空格,维持默认黏在一起的样子。

  • auto:让浏览器自行决定最佳自动间距(不同平台实现可能不同)。

  • <autospace>:可细致指定要针对哪些情境插入自动间距,如 ideograph-alpha(汉字与英文字母)、ideograph-numeric(汉字与数字)、punctuation(标点)、insert(仅无空格时插入)、replace(取代原有空格)。

9630BF45-5DC9-427F-A79B-8AA29FF6B66D.png

评论