原生 CSS测量中
让每一句话都读起来更加自然。
CSS 代码
const text = "让每一句话都读起来更加自然。";
const style = {
width: 320, maxWidth: "100%", fontSize: 24,
fontWeight: 650, lineHeight: 1.55,
letterSpacing: "-.037em",
};
<p style={{ ...style, whiteSpace: "pre-wrap",
wordBreak: "keep-all", overflowWrap: "anywhere" }}>
{text}
</p>