<br />I'm basically going crazy with this problem. The symptoms are as follows ![]() Symptom description: In Internet Explorer (I haven't tried 6, 7, or 8), when Chinese and English are mixed, the default font is used, and the li list is used for float, the above symptom will appear, and the text will not be aligned vertically. It affects the aesthetics of the layout. The reason for the situation in the above picture is that the baselines of Chinese and English texts are different. The lower edge of the Arial font is one pixel lower than that of the Song font (both are size 12), and the upper edge is two pixels lower than that of the Song font. In addition, English also has i, y, which have different upper and lower baselines. Therefore, when Chinese and English are mixed and aligned, there will be an obvious height difference, making the layout uneven. See enlarged image. ![]() Use Song font for both Chinese and English text ![]() This can solve the problem of misaligned text, but Times New Roman is a serif font (Times New Roman is a serif font in English). The font is compact and has many details. It is very eye-catching when arranged together, but when it is written continuously, it is easy to cause recognition difficulties and read the wrong line. For more information on the pros and cons of serif fonts, see this article. In contrast, sans serif fonts are more beautiful and elegant when used to represent English. Solution 1: The discovery of the “dumpling” kid’s shoes. English uses Tahoma font – Comparison of Song, Arial and Tahoma fonts – Arial and Tahoma sans serif fonts are more refined ![]() When using tahoma fonts for mixed Chinese and English text ![]() The line heights of the mixed Chinese and English and pure Chinese combinations are consistent, but the underline of a is attached to the Chinese text when it is in hover state. Defect: When using the Tahoma font, in IE6 and earlier versions, the underline of all Chinese font links will stick to the font. Taobao also uses this solution. I believe that in large projects, when different people work together to complete a page module, it is worthwhile to make the font more standardized and reduce misalignment under unified specifications, and to use the tahoma font with underlines that will appear to be stuck to the font. The following is what I found with my friends : Arial font is used for English and Song font is used for Chinese. You can specify line-height:1.231 in the <a> tag to solve the problem of unequal line heights and the problem of font and underline sticking together. (I don’t know whether it is applicable to a large-scale mixed typesetting of Chinese and English. This needs further verification.) ![]() Summary: Thanks for the rice, thanks for the dumplings, thanks for YUI, and thanks for Taobao! |
<<: MySQL uses frm files and ibd files to restore table data
>>: An article to help you understand the basics of VUE
Table of contents Manual backup Timer backup Manu...
The utf8mb4 encoding is a superset of the utf8 en...
Windows: Support NTFS, FAT Linux supports file fo...
Table of contents 1 redis configuration file 2 Do...
Anyone who has worked on a large system knows tha...
Preface A Docker image consists of a Dockerfile a...
Table of contents Overview Blob Blob in Action Bl...
Click here to return to the 123WORDPRESS.COM HTML ...
MySQL full text search Chinese solution Recently,...
Usage Environment In cmd mode, enter mysql --vers...
1. Stop the database server first service mysqld ...
Preface I encountered a Mysql deadlock problem so...
1. Storage Engine In the last section, we mention...
Tomcat itself optimization Tomcat Memory Optimiza...
Recently, I was adding a series of statistical fu...