Home >Web Front-end >CSS Tutorial >Regarding the compatibility issue between height and line-height of td_Experience exchange

Regarding the compatibility issue between height and line-height of td_Experience exchange

WBOY
WBOYOriginal
2016-05-16 12:06:121639browse

Conclusions obtained through PS screenshots
When setting td{height:22px;}, the page displays: ie is 22px, ff is 21px; Practice has proved that ie will always be 2px larger, and ff will be 1px smaller.
When setting td{line-height:22px}, the page displays: ie is 24px; ff is also 24px; 2px larger than the actual one, but consistent.

You can also test it yourself.

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