Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the element line break dislocation bug when the right floats to the right in IE7float

Shulou Source: shulou.com Published: 2022-06-03 14:04:46 10月04日 Update

How to solve the element line break dislocation bug when the right right floats in IE7float. In view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a simpler and easier way.

The code is as follows:

Ssdd ssdd

The situation is as follows:

This time the situation is different from the last time, the last floating element did not set the top margin, so moving the floating element directly to the non-floating element can solve the problem.

However, this floating element has an outer margin, and the last method is invalid.

The reason has not been found, but it can be solved by the following methods.

Adapt margin-top to css hack to IE7, assign a negative value to it, and slowly adjust the value to the appropriate position.

The reason is double margin?

It's hard to say, because the margin has more than tripled.

The answer on how to solve the bug problem of element line break when right right floats in IE7float is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Tags: Elements floats questions methods reasons more help answers different appropriate easy easy above code location content double such as above boy buddy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno MariaDB NVidia Linux