我的网站上有新代码,部分图片图标无法点击。该网址显示为正在读取标记,但您无法单击该图片。任何见解都会有所帮助。
http://staging.pinupgirlclothing.com/retrodresses/lush-dress-swan.html
看看店铺的样子
html布局是:
<ul class="box-content">
<li class="item first">
<div class="item-info">
<a href="http://staging.pinupgirlclothing.com/new-items/sp-15252-pk.html" class="product-image"><img src="http://staging.pinupgirlclothing.com/media/catalog/product/cache/1/small_image/115x150/9df78eab33525d08d6e5fb8d27136e95/s/p/sp-15252-pk_01t.jpg" width="115" height="150" alt="Floozy Kiss Lock Purse in Baby Pink Size- 939450" title="Floozy Kiss Lock Purse in Baby Pink Size- 939450" /></a>
</div>
</li>
<li class="item">
<div class="item-info">
<a href="http://staging.pinupgirlclothing.com/new-items/il-hs-bk.html" class="product-image"><img src="http://staging.pinupgirlclothing.com/media/catalog/product/cache/1/small_image/115x150/9df78eab33525d08d6e5fb8d27136e95/i/l/il-hs-bk_01.jpg" width="115" height="150" alt="Vintage Style Sheer Hair Scarf in Black Size- 952104" title="Vintage Style Sheer Hair Scarf in Black Size- 952104" /></a>
</div>
</li>
<li class="item last">
<div class="item-info">
<a href="http://staging.pinupgirlclothing.com/new-items/black-jelly-flats.html" class="product-image"><img src="http://staging.pinupgirlclothing.com/media/catalog/product/cache/1/small_image/115x150/9df78eab33525d08d6e5fb8d27136e95/f/i/fi-032jelly-bk_01_1.jpg" width="115" height="150" alt="Dragonfly Jelly Peeptoe Flats in Black" title="Dragonfly Jelly Peeptoe Flats in Black" /></a>
</div>
</li>
</ul>
答案 0 :(得分:1)
main.js中的这段代码是你的问题。如果您不希望阻止默认行为(在链接之后),请不要阻止默认:
$('.product-view a.product-image').on('click', function(e) {
e.preventDefault();
});