简体   繁体   English

HTML UTF-8不同的'事实上'字体大小

[英]HTML UTF-8 different 'de facto'-font-sizes

I want to make a Country-Picker with a select (in the original, foreign language). 我想用select(原始的外语)制作一个Country-Picker。 The characters in some languages are greater than others (with same font size). 某些语言中的字符比其他语言更大(字体大小相同)。

<select>
    <option>Cambodia (កម្ពុជា)</option>
    <option>Deutschland (Germany)</option>
</select>

Example: http://jsfiddle.net/93Xnc/ 示例: http//jsfiddle.net/93Xnc/

How can I fix this? 我怎样才能解决这个问题? I cannot change the font-size within an <option> . 我无法在<option>更改字体大小。

Thanks in advance 提前致谢

You can fix it by using multiple typefaces and various font sizes for your options. 您可以通过使用多种字体和各种字体大小来修复它。

Example: 例:

<option style="font-family:Comic Sans MS,arial,serif;font-size:13px">Cambodia (កម្ពុជា)</option>
<option style="font-family:Arial,serif,sans-serif;font-size:11px">Deutschland (Germany)</option>

You can find plenty of typefaces in Google Fonts . 您可以在Google字体中找到大量字体 Just find those that best fit to your options and adjust the font-sizes accordingly. 只需找到最适合您选项的那些,并相应地调整字体大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM