网页大小不会随着浏览器窗口大小的调整而调整
我正在为客户开发的一个网站遇到了一个奇怪的问题。加载页面时,页面会填充整个浏览器窗口,但如果重新调整窗口大小,页面将保持其原始尺寸并出现滚动条,有点像溢出:隐藏。我不知道为什么会发生这种情况,这是网站: http://www.anthonygonzalez.com/
A website I am developing for a client is having an odd issue. When the page is loaded, the page fills the whole browser window, but if the window is re-sized, the page stays its original dimensions with scroll-bars appearing, kind of like an overflow: hidden. I'm not sure why this is happening, here is the website: http://www.anthonygonzalez.com/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
加载页面的
body
时调用的setStyle()
函数会根据浏览器窗口的大小静态(使用像素)设置宽度等< em>当页面加载时。当窗口大小更改时,它似乎不会更新这些值。 您需要如果这没有帮助,或者我错过了什么,请告诉我。
Your
setStyle()
function that's called when thebody
of your page loads is setting up the width, etc. statically (using pixels) based on the size of the browser window when the page is loaded. It doesn't appear to be updating those values when the window changes size. You either need toLet me know if that doesn't help, or if I've missed something.