JQuery-动态文本修剪-Iphone问题

JQuery-动态文本修剪-Iphone问题,jquery,iphone,Jquery,Iphone,我们正在实施客户端网站的移动版本。商店页面有一个很长的商店信息列表,其中包含指向其他信息的链接。一个商店HTML块的示例如下- <div class="overlayContent"> <h2>Bagot Opticians</h2> <div> 10 Library Road <br> Kendal, LA9 4QB <br> Tel: 01539 721619 </div> <a href="stor

我们正在实施客户端网站的移动版本。商店页面有一个很长的商店信息列表,其中包含指向其他信息的链接。一个商店HTML块的示例如下-

 <div class="overlayContent">
<h2>Bagot Opticians</h2>
<div>
10 Library Road
<br>
Kendal, LA9 4QB
<br>
Tel: 01539 721619
</div>
<a href="store-directory/bagot-opticians.aspx">more about S., C. &amp; T. Bagot</a>
</div>
除了iphone之外,它在任何设备上都能正常工作——因为某种原因,iphone会将电话号码作为目标的一部分!?有人能为这个问题提供不同的方法或任何理由吗

干杯 保罗

试试这个:

$(document).ready(function() {
  $('.jsGrid ul li').each(function(index) {
    $('.overlayContent a', this).remove();
  });
});
如果您希望保留元素本身,但只是将其清空,请将remove替换为empty

$(document).ready(function() {
  $('.jsGrid ul li').each(function(index) {
    $('.overlayContent a', this).remove();
  });
});