Han icon indicating copy to clipboard operation
Han copied to clipboard

語言屬性值的思考

Open Open343 opened this issue 7 years ago • 1 comments

在 https://hanzi.pro/manual/anzhuang_yu_qiyong 中提到「可能的語言屬性值」和「其他有用的語言屬性值」中有關國語(普通話)中文簡體和中文正體的可用描述建議是:zh-Hans/zh-Hant,zh-cmn-Hans/zh-cmn-Hant,我想請教,在實際使用中能否使用,cmn-Hans/cmn-Hant 兩個值?

Open343 avatar Sep 04 '18 07:09 Open343

目前漢字標準格式在CSS中以 :lang(zh) 來匹配使用漢字書寫中文的頁面及元素(唯一的例外是 :lang(zh-Latn,匹配使用羅馬拼音書寫中文的頁面或元素),所以若要套用漢字標準格式提供的樣式,尚無法直接使用不含 zh- 宏語言代碼的語言屬性。

CSS Selectors Level 4標準尚在製定中,未來瀏覽器實作了相應的功能後,我們會支援更有彈性的語言屬性値。

參見:https://www.zhihu.com/question/20797118/answer/16809331

ethantw avatar Sep 23 '18 09:09 ethantw