浏览器滚动条移位 [英] Browser Scrollbar shift

查看:127
本文介绍了浏览器滚动条移位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您访问我的网站上有其他内容的页面时,滚动条会显示在右侧,但它向左移动了我的内容。您会注意到这一点,方法是点击主页,然后再在我的网站(www.ipalaces.org)上托管并再次访问。

When you go to page on my website where there is extra content, the scrollbar appears on the right, but it has a notiable shift to the left for my content. You notice this by clicking home and then hosting and back again on my site (www.ipalaces.org)

如何计算我的网页上的浏览器滚动条?
我可以让滚动条始终可见吗?

How can I account for the browser scrollbar on my pages? Can I make it so the scrollbar is always visible atleast?

我的网站是 www.ipalaces.org ,请让我知道。

My website is www.ipalaces.org, please let me know.

推荐答案

这将强制滚动条总是显示。

Make your body 101% tall... this will force the scrollbar to always show up.

body {height:101%}

这篇关于浏览器滚动条移位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆