Home > Web Front-end > CSS Tutorial > Compatibility issues of CSS Div minimum height in IE 6 and IE 7_Experience exchange

Compatibility issues of CSS Div minimum height in IE 6 and IE 7_Experience exchange

WBOY
Release: 2016-05-16 12:07:53
Original
1799 people have browsed it

Browser compatibility issues - CSS Div minimum height compatibility issues in IE 6 and IE 7

When using CSS to define the height of a DIV, it can be displayed normally under the IE 7 browser. But in IE 6, height cannot be defined below 10px. This is somewhat similar to a table. The solution is as follows:

Method 1: Define the overflow attribute. For example, you want to define a line with a height of 2px.

Method 2: Set the font size attribute fontsize of the div to be the same as the height.
&nbps;

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template