我正在尝试将一些带有 href 标记的文本链接到我网站中的特定部分。
在主页上,我有一个引用,然后是说这句话的人的名字。我想将他的名字链接到我的“关于”部分的“即将发生的事件”选项卡上。
该网站是http://www.verticalministries.net。名称“Aaron Ivey”需要链接到“关于”部分下的“即将发生的事件”选项卡。该网站是一个使用 JavaScript 滚动的单页作品集。
我曾尝试使用 name 属性,但这不起作用,因为 href 标记看起来像<a href="#about#ivey>Aaron Ivey</a>
,而且这不是有效代码,因为我通过类滚动页面。我确实检查了名称属性,并且确实给了它#ivey。
<div class="fifth_page" style="display:none">
<h1>Upcoming Events</h1>
<h4>Feb. 15 - Aaron Ivey Band</h4>
<a name="#ivey"></a>
<img src="images/iveypromo.jpg" alt="Aaron Mug Shot" class="floatRight img_left_space" />
<p> “Aaron Ivey believes that all worship is a response to a creative and compelling God. Serving as one of the worship pastors at <a href="http://www.austinstone.org" target="_blank">The Austin Stone</a>...</p>
</div>
任何帮助将不胜感激。
如果您还有其他问题,请告诉我。
谢谢你。
真挚地,
DH约莱施