链接被识别为链接,但无法工作的链接被识别为链接,但无法单击以朝着一个页面网站内的锚点

问题描述 投票:-3回答:1
下面的代码无法正常工作:

<!--/Portfolio Item --> <div style="position: absolute; left: 0px; top: 0px; transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1); width: 337px; opacity: 1;" class="portfolio-item one-four 2019 thriller langverhaal isotope-item"> <div class="portfolio_img"><a href="#Wreed2"><img src="img/wreed_cover_n2.jpg" alt="coverfoto Wreed met boksbeugel" width="147" height="208" class="img-square delay-03s animated wow zoomIn"></a></div> </div> <!--/Portfolio Item -->

该链接被识别为链接,但是单击它不会执行任何操作。网页上有'section id =“#Wreed2”,并且其他链接仍在起作用,但是此项目组合项目(引导程序模板)中的此链接除了显示出表明其为链接的手之外没有任何作用。任何人有任何想法吗?

感谢您的帮助。

html hyperlink anchor
1个回答
0
投票
我并不完全符合您的期望。如果<a href = ""#开头,它将链接到html中的id。不是新网站。因此,如果没有ID为#Wreed2的标签,它将无法正常工作
© www.soinside.com 2019 - 2024. All rights reserved.