Home > Article > Web Front-end > Problem with underline alignment in Chinese and English fonts under IE
However, after testing, this situation will not occur when the link is set directly on the page by default!
Code
php中文网
Then the doubt comes again, what causes the deviation between Chinese and English? ! What's the solution? ! So after my testing, I found two situations (of course there may be more causing situations. You can try it yourself). The adjacent elements of the Chinese and English objects have the vertical-align attribute setting (such as the previous small picture, or the text box , we need to align them vertically. Generally, when we set vertical-align:middle; for pictures and text boxes (any other inline block elements)), it will affect the misalignment of Chinese and English.
Another situation is that when the parent element (except the table) has the vertical-align attribute set, the Chinese and English of the child elements inside will not be aligned.
Code
Code box
The above is the detailed content of Problem with underline alignment in Chinese and English fonts under IE. For more information, please follow other related articles on the PHP Chinese website!