GitHub io页面在Safari上不再正常工作,但在Chrome上正常。

huangapple go评论66阅读模式
英文:

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:

        &lt;header class=&quot;header&quot;&gt;
            &lt;a href=&quot;#&quot; class=&quot;hamburger&quot;&gt;
                &lt;span class=&quot;bar&quot;&gt;&lt;/span&gt;
                &lt;span class=&quot;bar&quot;&gt;&lt;/span&gt;
                &lt;span class=&quot;bar&quot;&gt;&lt;/span&gt;
            &lt;/a&gt;
            &lt;nav class=&quot;navbar&quot;&gt;
                &lt;ul class=&quot;nav-area&quot;&gt;
                    &lt;li&gt;&lt;a href = &quot;index.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp
                    &lt;li&gt;&lt;a href = &quot;portfolio.html&quot; &gt;Portfolio&lt;/a&gt;&lt;/li&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp
                    &lt;li&gt;&lt;a href = &quot;project.html&quot;class=&quot;active&quot;&gt;Project&lt;/a&gt;&lt;/li&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp
                    &lt;li&gt;&lt;a href = &quot;x.github.io&quot;&gt;Github&lt;/a&gt;&lt;/li&gt;&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp
                    &lt;li&gt;&lt;a href = &quot;https://rapidcharts.io/datascience&quot;&gt;Course&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/nav&gt;

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;样式会使导航无法使用:

GitHub io页面在Safari上不再正常工作,但在Chrome上正常。

您可以将其删除或添加到您的菜单中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:

GitHub io页面在Safari上不再正常工作,但在Chrome上正常。

You can remove it or add to your menu transform: translateZ(0) that do it available to use.

header {
  transform: translateZ(0);
}

huangapple
  • 本文由 发表于 2023年4月13日 23:09:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/76007057.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定