我正在使用下面的代码,“单击此处查看保修详细信息”链接会使页面跳转到下一页,上传到ebay后,该页在IE中工作,但在Mozilla中不工作,我是否可以放置任何代码,使页面跳转在所有浏览器上工作?
这是实时链接(仅用于此项目作为测试)
http://www.ebay.com/itm/Metra-70-1002-1988-1996-Dodge-Jeep-In-Dash-Radio-Installation-Wire-Harness-/350683730934?MfcISAPICommand=ViewItem
<a href="#policies">Click Here To View Warranty Details</a> </p>
<p style="text-align: center;"> </p>
<center>
<p class="pad"><b>Click to enlarge (Photos will open in a new window)</b><br />
##ITEM_IMAGES_HORT_M##</p>
</center>
<h3>Product Description</h3>
<div class="pad2">
<table style="border: black 1px solid;" cellpadding="3">
<tbody>
<tr>
<td>
<p>##ITEM_DESCRIPTION_HTML##</p>
<p><strong><span style="font-size: 24px;">Specifications: </span></strong></p>
<p>##ITEM_ATTRIBUTES##</p>
<p>##CUSTOM1## </p>
</td>
</tr>
</tbody>
</table>
</div>
<div id="listing-lower">
<h2 class="item_title"><img alt="" src="http://www.audiosavings.com/content/ebay/newtemplate/tru_policies.jpg" /></h2>
<a href="" name="policies"> </a>
<div style="text-align: center;" id="infoTabs"><a id="infoTabs"><!-- tab 1 --></a><a name="shipping"></a>
<div id="tab1">
<ul class="tablinks">
<li><span>Shipping</span> </li>
<li><a href="#nogo" onclick="return show('tab2')">Payment</a> </li>
<li><a href="#nogo" onclick="return show('tab3')">Return Policy</a> </li>
<li><a href="#nogo" onclick="return show('tab4')">General Info</a> </li>
<li><a href="#nogo" onclick="return show('tab5')">Intl. Shipping</a> </li>
</ul>
<h4 class="tabtitle">Shipping</h4>
<ul class="tabinfo">
<ul class="tabinfo">
<li><strong><span style="color: #293d86;">Shipping is FREE!<br />
</span></strong>Free shipping to the 48 continental US is done with ##ITEM_DEFAULT_SHIPPING_METHOD_DESCRIPTION##<br />
- Orders Tues-Friday - Pay by 1:00 PM EST and get SAME DAY SHIPPING!<br />
- Orders Sat - Sunday - Ships Monday<br />
- Orders Monday - Ships Monday or Tuesday <br />
最佳答案
你的政策应该是
<a id="policies">
而不是name属性。
编辑
正如马克B所说:http://www.w3schools.com/tags/att_a_name.asp