Home  >  Article  >  Web Front-end  >  html I feel that the height and size of Chinese characters are inconsistent, please help me_html/css_WEB-ITnose

html I feel that the height and size of Chinese characters are inconsistent, please help me_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:39:161585browse



Let’s see if this name is different in size? Why?

The js display code is as follows:
for ( var i = 0, l = resultList.length; i < l; i ) {
var info = resultList[i];
var trBody = [
'',
'' info.name
'
',
'' info.pkId ''];


body.append(trBody.join(''));
}


Reply to discussion (solution)

= =Is it true...?

It should be one big on one side. It’s just that some tables are too big and it doesn’t feel as big as one side

Take a look at the font settings. This should be an English font. I was lazy before and downloaded a foreign template. This happened when I only translated the template into Chinese. Finally Delete all the defined font styles and only define them in the body. Everything is normal.

Take a look at the font settings. This should be an English font. I was lazy and downloaded a foreign one. Template, this happens when I only Chineseize the template. Finally, I deleted all the defined font styles and only defined them in the body, and everything was normal



Correct answer, I changed the font. Aligned.
Original code: font-family: "Microsoft YaHei", Microsoft YaHei, "Microsoft JhengHei";
New code: font-family: "STSong";
The effect is as shown:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn