I noticed that Chinese characters tend to be a bit smaller in my website than Roman characters.
开发者_JAVA技巧I would like to know if there's a way of modifying them through CSS without touching Roman characters.
For instance, assigning font-size to only Chinese characters.
You have basically two options:
- Enforce server-side that all Chinese text, and only Chinese text, is wrapped in HTML elements labeled
lang="zh"
. Then you can select them with:lang(zh)
and apply a larger font-size. - Use
@font-face
to load a Chinese font whose metrics more closely match the Roman font you are using.
精彩评论