Home >Web Front-end >HTML Tutorial >CSS2 height attribute invalidation problem in IE9_html/css_WEB-ITnose

CSS2 height attribute invalidation problem in IE9_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:15:541620browse

I drew a point on the page using a div tag, but the height of this point is still the default height when set to 1px, and the point cannot be drawn successfully. The HTML code is as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title></title></head><body><div style="position:absolute; left:100px; top:100px; height:2px;width:2px;background-color:#FF0000"></div></body></html>

The effect is as follows: [img=http://my.csdn.net/my/album/detail/1332440#1332440][/img]
http://my.csdn .net/my/album/detail/1332440#1332440

Please help me!


Reply to discussion (solution)

Protocol issues
Put
57992f44309a594bfb8d5baf41211d3b
changed to
fef50554eca1a427827adaa329da8122

Just fine

Not bad. . The type of declaration is the issue. .
Protocol issues
Change
f2f216197c980f48d6fa614d63dba7b0
to
fef50554eca1a427827adaa329da8122

Just fine

Thank you, the problem has been solved, declaring it as fef50554eca1a427827adaa329da8122 will be risky in old browsers, so it is not the best choice, mine The problem is the browser mode, adjust it and it will be fine. But thank you for your enthusiasm, and the points will be given to you.

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