Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to operate div minimum height removal and Vertical centering css style in IE6

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

In this issue, the editor will bring you about how to operate the div minimum height removal and vertical center css style in IE6. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Div minimum height removal method:

In IE6, when using CSS to define the height of DIV, you often encounter this problem, that is, when the minimum height of DIV is less than a certain value, you will find that no matter how you set the minimum height, the height of Div will be fixed at a value that will no longer change. This problem is very annoying. Such as the following situation.

HTML code

The code is as follows:

This is because in IE6, the system default is not Div has a default height, but you did not solve a hidden parameter, font-size, this is ie6 for the Div attribute of the font-size size and your system css definition of font-size has a lot to do, so you must define the font-size of this Div separately, in order to solve this problem. The changed code is as follows.

HTML code

The code is as follows:

Div is vertically centered:

Html:

The code is as follows:

Css:

The code is as follows:

# loginbox {width:348px; height:383px; position: absolute; left:50%; top:50%; margin-left:-174px; margin-top:-250px;} the above is shared by the editor on how to operate the div minimum height removal and vertical center css style in IE6. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report