我的 <a> 标签不起作用?

莫哈纳德

这是我的第一个 HTML 网站,我有一个小问题。在“关于我”部分,有三个不起作用的超链接(我无法点击它们)。但是,下拉菜单中的那些工作。知道为什么吗?

这是我的代码https://jsfiddle.net/2hkhmLef/

<p>
                  I am a 20 year old student studying at Concordia University in Montreal. Currently, I am in my
                  2nd year of education pursuing a Bachelors in Software Engineering. Up to now, my experience
                  has been wonderful. I meet great people that share similar interests, my network is growing day-by-day
                  and I learn things that interest me. The ultimate goal right now is to graduate and this website will
                  be used to explore everything I learn as I go. For my school assignments and personal projects, you can find
                  them in the <a href="#port_section" class = "intro_link">portfolio</a> section. For my personal weekly activities, you can find out what I've been
                  up to in the <a href="#" class = "intro_link">activities</a> section. Finally, if you are ever interested in checking out my other social
                  networks (GitHub, LinkedIn, etc...) or to contact me, you can go to the <a href="#" class = "intro_link">contacts</a> section.
</p>
戴夫

您的.menuhasheight: 100vh和 is 位于navwith 内position: fixed,因此它始终占据视口的 100%,因此当您单击时,您总是单击.menu.

如果将 css 更改为:

https://jsfiddle.net/2hkhmLef/1/

.menu {
  width: 100%;
  height: 92px;
  margin-bottom: 100vh;
}

它仍然向下推内容,然后它不会阻止链接。

我在你的 html 中看不到图像,所以我无能为力,但是,这是超级hacky,我不推荐它,但如果你只需要链接可点击:

.menu {
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.menu ul {
    pointer-events: all;
}

也会解决这个问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

我的锚标签不起作用。

来自分类Dev

我尝试获取最新的git标签,但不起作用

来自分类Dev

如果我嵌入标签,onEnded事件不起作用

来自分类Dev

Google Map在我的“响应式”标签中不起作用

来自分类Dev

为什么我的标签页不起作用?

来自分类Dev

标签不起作用,我已尽力而为

来自分类Dev

npm install classnames在我的li标签中不起作用

来自分类Dev

我的布局不起作用

来自分类Dev

clearInterval对我不起作用

来自分类Dev

FirebaseRecyclerAdapter对我不起作用

来自分类Dev

fnServerParams对我不起作用

来自分类Dev

JButton对我不起作用?

来自分类Dev

setOnEditorActionListener对我不起作用

来自分类Dev

@XmlElementWrapper对我不起作用

来自分类Dev

我的点击不起作用

来自分类Dev

我的按钮不起作用

来自分类Dev

我的分页不起作用

来自分类Dev

我的意图不起作用

来自分类Dev

FirebaseRecyclerAdapter对我不起作用

来自分类Dev

toggleClass() 对我不起作用

来自分类Dev

为什么在Vue中我的移动标签效果不起作用?

来自分类Dev

通过JavaScript函数从我的代码中隐藏指定的标签<li>,但不起作用

来自分类Dev

<%=%>标签是否会更改变量的类型?传递的变量在我的函数中不起作用

来自分类Dev

短信权限不起作用。无论我在哪里放置许可标签

来自分类Dev

当我使用角度标签设置ID时,setMainPage似乎不起作用,为什么?

来自分类Dev

为什么我的第二种标签类型不起作用?

来自分类Dev

如果我使用 HTTP get,模板中的每个标签都不起作用

来自分类Dev

为什么我的条件标签在 Wordpress 中不起作用

来自分类Dev

当我有 PHP ECHO 时 HTML 标签不起作用

Related 相关文章

热门标签

归档