How to position a DIV to be perfectly compatible. _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:22:20
Original
1343 people have browsed it

It is fixed in a certain place, and IE7/IE8/FF can be in place. . . .


Reply to the discussion (solution)

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!