< div class="top">
<!DOCTYPE HTML><html> <head> <meta charset="gb2312" /> <title></title> <style> .top{width:1100px;height:90px;border:1px solid #000;margin:0px auto;} </style> </head> <body> <div class="top"> <ul> <li>1</li> <li>2</li> <li>3</li> </ul> </div> </body></html>
Still the same narrow screen
Is it wide screen?
Define width as % and it will be ok
<!DOCTYPE HTML><html> <head> <meta charset="gb2312" /> <title></title> <style> .top{width:96%;height:90px;border:1px solid #000;margin:0px auto;} </style> </head> <body> <div class="top"> <ul> <li>1</li> <li>2</li> <li>3</li> </ul> </div> </body></html>
The poster checked to see if the wanderer was accidentally enlarged and adjusted it to 100%
% is the same width
My computer screen is widescreen
But wouldn’t it work without using %?
I don’t understand what effect the poster wants to achieve?
I don’t understand what effect the poster wants to achieve?
What I mean is that my top code can make it display the same width in both browsers
That is % or fixed px
Even if the px width is fixed, it will be different
I use IE6, 7, 8 Chrome, Safari, Opera, and Firefox all have the same width. . .
Is there something wrong with my firefox? ?
Try reinstalling