0

我的网站上有新代码,我的部分图像图标不可点击。url 显示,因此它正在读取 a 标签,但您无法单击图片。任何见解都会有所帮助。

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>
4

1 回答 1

1

main.js 中的这段代码是你的问题。如果您不希望阻止默认行为(按照链接),请不要阻止默认:

    $('.product-view a.product-image').on('click', function(e) {
        e.preventDefault();
    });
于 2013-11-12T18:40:16.533 回答