Home  >  Article  >  Web Front-end  >  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
WBOYOriginal
2016-06-24 12:30:041263browse


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


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

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