When the text in a container is connected with IMG, input, textarea, select, object and other elements, the Line-height value set for the container is invalidated, and the row height of the above elements may be x2, the affected browsers: ie5.01, ie5.5, ie6.0.
The solution is to attribute the IMG, input, textarea, select, object, and other elements connected to the text as follows:
Question: In IE6, when text and IMG, input, textarea, select, object are in the same container, the Line-height attribute fails. The Line-height property is valid only when full text is available.
Workaround: Increase in the style of one of the non-literal objects: Margin: (Line-height of the container-the height of the object itself)/2PX 0; Vertical-align:middle;
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.