Home >Web Front-end >HTML Tutorial >How to position a DIV to be perfectly compatible. _html/css_WEB-ITnose
It is fixed in a certain place, and IE7/IE8/FF can be in place. . . .
style="position:fixed;top:0,right:0"
Idea problem Compatibility does not mean exactly the same
No one will open ie6 ie7 ie8 firefox chrome at the same time... to look at your page
The so-called compatibility means that the effect is the best under the current browser (can be downgraded if it cannot be reached) and the visual effect is better under the current browser Naturally, the functions are consistent under all browsers
Test more~~~~~~~~~~~~~~
Every browser must be tested!
Tiger Portal
First set the phase positioning of the upper DIV without setting the left attribute, then add absolute positioning to the DIV you want to position, and get an accurate left. Then the top will be basically fine. ? I have tested IE and FF and there are basically no problems. I don’t know if this method is perfect
Tiger Portal
I think this portal is good