开发者

Why my div that is set to 100% in width doesn't want stretch to the width of the browser window when the page is scrolled?

开发者 https://www.devze.com 2022-12-19 17:50 出处:网络
Why my div that is se开发者_开发技巧t to 100% in width doesn\'t want stretch to the width of the browser window when the page is scrolled?As far as I understand it, Div tags are not very good at stret

Why my div that is se开发者_开发技巧t to 100% in width doesn't want stretch to the width of the browser window when the page is scrolled?


As far as I understand it, Div tags are not very good at stretching themselves to 100% of the width or height in comparison to Tables. Notice how nearly all of Microsoft's code uses tables as a base. I think if you put the div inside a table cell which has the correct width and then do width:100%; , that should do the trick. If you can.. have your master page based on a stretchable table.

Hope this isn't too far off what you're looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消