A solution to the problem of high and low ranking in English and Chinese web pages-Experience Exchange

Source: Internet
Author: User
Tags mixed

Is basically crazy about this problem, the symptoms are as follows

Symptom description: In IE (6 or 7,8 did not try) when the Chinese and English mixed row, all adopt the default font, and use the Li list to do float, will appear as the symptoms of the above picture, the text is not aligned up and down. Affect the beauty of the layout, the reason for the above picture is different in Chinese and English, the lower edge of Arial font is one pixel lower than that of the song body (same as 12th), the upper edge is two pixels shorter than the song body, and the English language is different from the i,y and lower baseline. So in English mixed row alignment, there will be a significant difference in height, so that the layout is uneven. A magnified view is visible.

The scheme of using the song body in Chinese and English characters

You can troubleshoot text alignment, but the song body English word is the lining line font (Times New Roman namely is the English line word), the font compact, the detail is many, arranges together very eye-catching, but in the continuous writing, easily causes the identification to be trapped, sees the wrong row the situation. see this article for the pros and cons of serif fonts . In contrast, it is more elegant to express English or to use a sans serif font.

Solution a "dumpling" the discovery of children's shoes.

English using Tahoma font-arial, Arial and Tahoma font comparison –arial and Tahoma of the sans-serif body is more exquisite

When you use the Tahoma font in English mixed row

In Chinese and English mixed row, the line height of the pure English combination is consistent, but a in the hover state underline and the Chinese glue together.

Flaw: When using Tahoma fonts, the following versions of the IE6 and IE6 will cause the underline of all Chinese font links to appear with the font adhesion phenomenon. Taobao is also using this solution. Believe that large-scale projects, different people to work together to complete a page module, under the uniform specification, so that the font more standardized to reduce dislocation, and the use of the underline will appear with the font adhesion Tahoma font, is worthwhile

The following is found with the rice children's shoes :

Arial is used in English, the Chinese use of the song body. Can be noted in the <a> label line-height:1.231, can solve the row height range and the font and underline adhesion problem. (Do not know the wide range of Chinese and English mixed arrangement is not applicable, awaiting subsequent verification.) )

Summary: Thank the Rice, thank dumplings, thank Yui, thank you Taobao!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.