0

I'm making a simple 4 page website, but on the Portfolio page, the main navigation bar (like where you'd type in www.google.com) gets smaller when you click on this page.

If you click back and forth on the other pages, it expands and then it gets smaller again when you click on the portfolio page. It gives the appearance that the site is "jumping" around when you click on the portfolio page.

Any help? I've been trying to figure out this for HOURS.

4

1 回答 1

2

这是因为您的所有其他页面都有滚动条,而您的投资组合页面没有;意味着存在轻微的水平差异。

您可以使用 CSS 强制所有页面显示滚动条:

body
{
    overflow-y: scroll;
}

这是一个演示

于 2013-09-26T01:39:38.710 回答