Home >Web Front-end >HTML Tutorial >CSS2 height attribute invalidation problem in IE9_html/css_WEB-ITnose
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>
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.