Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of doubling the padding value of ie6 layout pages

Shulou Source: shulou.com Published: 2022-06-03 08:40:19 11月15日 Update

Next, please follow the editor to study!

We often use float floats when laying out web pages with CSS. In order to be compatible with browsers, we often add an empty div after the last float to clear the floats, such as:, but today, we found that as long as the element with padding value is set, ie6 will double the padding value. The solution is to add the following code to the clear style:

The code is as follows:

.clear {clear:both;height:0px;overflow:hidden;}

At this point, the study on "how to solve the problem of doubling the padding value of ie6 layout pages" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Layout web pages questions learning floating code methods more help practical and then elements that is articles times styles browsers theory knowledge articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi Docker Microsoft Huawei