在响应网站中的锚标签

时间:2018-05-14 15:27:15

标签: html5 css3 menu responsive

我创建了一个"单页滚动"响应网站。在导航项中,我添加了以下代码,以使页面跳转到该特定部分:

// For example the contact menu

   <a href="#contact">Contact</a>

// Then in the contact section I added this
   <a name="contact"></a>

这在全宽网站上完美运行。 但是,由于我的网站具有响应能力,因此在移动视图中,当我点击&#34;好处&#34;例如,它确实跳转到了好处部分,但它增加了菜单的高度。有没有办法不能达到这么高的程度?

您可以查看页面here

Here you can see what I mean

0 个答案:

没有答案
相关问题