Html Href未导航到相应的页面
在上面的代码中,我有4个页脚链接,它们将导航到相应的页面。假设我点击了“公司愿景”,它将导航。但在那之后,如果我点击任何其他链接,它将无法导航。所有页面的页脚都相同。我正在检查点击事件是否发生,它在导航到链接后没有检测到。有人能帮我吗。这里的问题是,第一次不管about.html是哪一个????您第一次单击它就可以工作了。但是,在第一次点击之后,不会有任何点击,因为您已经在about.html页面上了,所以假设: 您在index.html中有此菜单(与post中的菜单相同)Html Href未导航到相应的页面,html,href,Html,Href,在上面的代码中,我有4个页脚链接,它们将导航到相应的页面。假设我点击了“公司愿景”,它将导航。但在那之后,如果我点击任何其他链接,它将无法导航。所有页面的页脚都相同。我正在检查点击事件是否发生,它在导航到链接后没有检测到。有人能帮我吗。这里的问题是,第一次不管about.html是哪一个????您第一次单击它就可以工作了。但是,在第一次点击之后,不会有任何点击,因为您已经在about.html页面上了,所以假设: 您在index.html中有此菜单(与post中的菜单相同) 当我单击某个链接时,
当我单击某个链接时,将显示相应的URL,但不导航问题是,一旦您导航到公司愿景页面,页脚
。/about_us/about.html中的以下路径#companyVision
将在下次单击时尝试在错误的位置查找您的页面。因此,您必须更新内部页面的页脚。如
请参阅控制台以了解错误。在Chrome中按F12或右键单击并转到检查HTML元素,然后转到控制台。无错误。。在控制台中,如您在about.html中所述,我已更改。。还是一样的问题。。项目结构我没有更改的权限您是否有检查问题的链接??
<div class="footer_links">
<ul class="foot">
<li><a href="../about_us/about.html#companyVision">Company Vision<span class="underline"></span></a></li>
<li><a href="../about_us/about.html#mgtTeam">Management Team<span class="underline"></span></a></li>
<li><a href="../about_us/about.html#indLeadership">Industry Leadership<span class="underline"></span></a></li>
<li><a href="../about_us/about.html#ThoughtLead">Thought Leadership<span class="underline"></span></a></li>
<li><a href="../offerings/offer.html">Offerings<span class="underline"></span></a></li>
<li><a href="../contactus/contact.html">Contact Us<span class="underline"></span></a></li>
</ul>
</div>
<div class="footer_links">
<ul class="foot">
<li><a href="../about_us/about.html#companyVision">Company Vision<span class="underline"></span></a></li>
<li><a href="../about_us/about.html#mgtTeam">Management Team<span class="underline"></span></a></li>
<li><a href="../about_us/about.html#indLeadership">Industry Leadership<span class="underline"></span></a></li>
<li><a href="../about_us/about.html#ThoughtLead">Thought Leadership<span class="underline"></span></a></li>
<li><a href="../offerings/offer.html">Offerings<span class="underline"></span></a></li>
<li><a href="../contactus/contact.html">Contact Us<span class="underline"></span></a></li>
</ul>
</div>
<div class="footer_links">
<ul class="foot">
<li><a href="#companyVision">Company Vision<span class="underline"></span></a></li>
<li><a href="#mgtTeam">Management Team<span class="underline"></span></a></li>
<li><a href="#indLeadership">Industry Leadership<span class="underline"></span></a></li>
<li><a href="#ThoughtLead">Thought Leadership<span class="underline"></span></a></li>
<li><a href="../offerings/offer.html">Offerings<span class="underline"></span></a></li>
<li><a href="../contactus/contact.html">Contact Us<span class="underline"></span></a></li>
</ul>
</div>
<div class="footer_links">
<ul class="foot">
<li><a href="about.html#companyVision">Company Vision<span class="underline"></span></a></li>
<li><a href="about.html#mgtTeam">Management Team<span class="underline"></span></a></li>
<li><a href="about.html#indLeadership">Industry Leadership<span class="underline"></span></a></li>
<li><a href="about.html#ThoughtLead">Thought Leadership<span class="underline"></span></a></li>
<li><a href="offer.html">Offerings<span class="underline"></span></a></li>
<li><a href="contact.html">Contact Us<span class="underline"></span></a></li>
</ul>
</div>
onClick="window.location.reload()