Home > Web Front-end > HTML Tutorial > CSS uses div to draw a 1px high thin line (IE version 6)_html/css_WEB-ITnose

CSS uses div to draw a 1px high thin line (IE version 6)_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:30:04
Original
1289 people have browsed it


Problem:
div{
background: #f00;
height: 1px;
}



Purpose: I want to use DIV to make a 1PX high thin line.

*The following IE versions are mainly IE6. The performance of IE7 is basically the same as firefox.

At 100PX and 1PX, FF is normal. But when the height attribute is less than 8px, the IE height remains unchanged. Why does IE recognize 100PX but not 1PX.
Processing method:

====================================== =============

code


= ===============================================

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