IE6 does not support CSS position: fixed, so it needs to be written in other ways.
There are many solutions that can be found on the internet. They are listed on the following webpage as references. If you are interested, you can study the solution on your own ~
Correction of CSS position: fixed by IE6
Write my practice here:
The code is as follows: |
Copy code |
# Id_or_class_name { Position: fixed! Important; _ Position: absolute; Bottom: 0; /* _ Bottom:-20px ;*/ _ Z-index: 10; Right: 0; } |
During modification, what is normal? The g browser modifies bottom and right, for IE6, such as _ bottom and _ right. (The preceding right can be shared repeatedly, so it will not be written on it. (If you want to appear in other regions, change it to top/left .. wait .)
? : _ Bottom and _ z-index are all for IE6.
IE6's solution to CSS position: fixed 2
I have not tested this solution, but it looks similar. The method is short. For details, see position: fixed Hack of IE6. The following is an excerpt from this solution:
The code is as follows: |
Copy code |
Html, body {height: 100%; overflow: auto ;} Div {position: absolute ;} Body & gt; div {position: fixed ;} |
? : The first two rows are for IE6, and the last row is normal? G browser.