Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 jquery 选项卡式内容,并且我注意到在导航到产品选项卡以外的任何选项卡时,页面向右移动几个像素,然后在单击产品选项卡时它会向后移动。这到底是什么原因造成的?
查看实际操作的链接,http://clients.zerozendesign.info/techject/
原因是产品选项卡上的长页面内容上存在滚动条。即使内容不需要滚动条,您也应该考虑显示滚动条,使用 CSS 属性进行溢出,如下所示:
html { overflow-y:scroll; }