<center>><p style="text-align: center"><a href="#anchor_carousel_edit_url_for_newspro-5">New Prototype Site Features are easily referenced at http://www.newyorkbusinessreview.com#anchor_carousel_edit_url_for_newspro-5 !</a></p></center>
&#13;
我仍然没有足够的声誉来添加完整的参考列表。但是,主要参考是:
http://help.typepad.com/anchor-tags.html
其他参考资料可在以下网址找到:
您可以在底部找到列出的原始资料。
Update in response to the first comment: I tried "http://newyorkbusinessreview.com/wordpress#anchor_carousel_edit_url_for_newspro-5" in my browser window and it automatically updated that to "http://newyorkbusinessreview.com/wordpress/#anchor_carousel_edit_url_for_newspro-5" and did not go to the anchor. I am unable also to get the comment author's suggestion to work too: it is currently featured on the homepage http://www.newyorkbusinessreview.com/wordpress/ but the browser does not go to the anchor when typed in at the top URL field.
答案 0 :(得分:0)
答案是尝试不同的参考。维基百科的方式目前已经完成。我使用的主要参考文献似乎记录了旧版本的锚点。
http://newyorkbusinessreview.com/wordpress/#contents
and http://newyorkbusinessreview.com/#contents
&#13;
两者都是一样的。主要链接http://newyorkbusinessreview.com/#contents会自动重定向到http://newyorkbusinessreview.com/wordpress/#contents
但是,内容必须在页面中格式化(我使用的是NewMag Pro主题)
<h4 id="contents">Table of contents: try </h4>
<a href="http://www.newyorkbusinessreview.com#contents">see contents</a>
&#13;
使用id而不是简单的#anchor似乎是关键。它也适用于GET post变量。需要注意的是 - 如果登录到Wordpress,锚点不一定有效,可能取决于所使用的主题和插件。注销wordpress或在私人窗口中启动网站以获得预期的行为。
我最终得到了链接的这三种变体。 (我把#contents放在那里只是为了支持stackoverflow帖子,供人们参考。)
New York Business Review – The Latest in Business for Today
http://newyorkbusinessreview.com/wordpress/?carousel_edit_url_for_newspro-5=4#anchor_carousel_edit_url_for_newspro-5
New York Business Review – The Latest in Business for Today
http://newyorkbusinessreview.com/wordpress/#anchor_carousel_edit_url_for_newspro-5
New York Business Review – The Latest in Business for Today
http://newyorkbusinessreview.com/wordpress/#contents
New York Business Review – The Latest in Business for Today
http://newyorkbusinessreview.com/wordpress/?carousel_edit_url_for_newspro-5=4#anchor_carousel_edit_url_for_newspro-5
&#13;