英文:
Github io webpage no longer working on safari, however working on chrome
问题
I previously coded a github webpage that worked perfectly fine around 2 months ago on all browsers. For some reason, I have just noticed that my navigation bar no longer works on safari, yet works on chrome. The actual links are still working, however my navigation bar buttons do not work. It's very weird as under the 'project' page of my website, the buttons for code and source links work perfectly fine. Any help and assistance would be greatly appreciated.
This is the format of my navigation bar:
<header class="header">
<a href="#" class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</a>
<nav class="navbar">
<ul class="nav-area">
<li><a href="index.html">Home</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="project.html" class="active">Project</a></li>
<li><a href="x.github.io">Github</a></li>
<li><a href="https://rapidcharts.io/datascience">Course</a></li>
</ul>
</nav>
The relevant github page is https://github.com/jameseconnolly/jameseconnolly.github.io. I suspect that the issue is not related to my css files, as the css code for the navigation bar buttons and code link buttons are identical. I noticed that the nav bar doesn't work either in mobile mode, so it may be an issue within html relating to the actual links, or link embedding method.
英文:
I previously coded a github webpage that worked perfectly fine around 2 months ago on all browsers. For some reason, I have just noticed that my navigation bar no longer works on safari, yet works on chrome. The actual links are still working, however my navigation bar buttons do not work. It's very weird as under the 'project' page of my website, the buttons for code and source links work perfectly fine. Any help and assistance would be greatly appreciated.
This is the format of my navigation bar:
<header class="header">
<a href="#" class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</a>
<nav class="navbar">
<ul class="nav-area">
<li><a href = "index.html">Home</a></li>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<li><a href = "portfolio.html" >Portfolio</a></li>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<li><a href = "project.html"class="active">Project</a></li>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<li><a href = "x.github.io">Github</a></li>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<li><a href = "https://rapidcharts.io/datascience">Course</a></li>
</ul>
</nav>
The relevant github page is https://github.com/jameseconnolly/jameseconnolly.github.io. I suspect that the issue is not related to my css files, as the css code for the navigation bar buttons and code link buttons are identical. I noticed that the nav bar doesn't work either in mobile mode, so it may be an issue within html relating to the actual links, or link embedding method.
答案1
得分: 1
I've translated the code-related part for you:
"通过查看项目中的代码,只需看到body
元素上的transform-style: preserve-3d;
样式会使导航无法使用:
您可以将其删除或添加到您的菜单中transform: translateZ(0)
,以使其可用。
header {
transform: translateZ(0);
}
英文:
By looking on your code in project just see, that transform-style: preserve-3d;
style on body
element just do navigation unavailable:
You can remove it or add to your menu transform: translateZ(0)
that do it available to use.
header {
transform: translateZ(0);
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论