简体   繁体   中英

YOXView doesn't work on iPhone

I used YOXView image gallery on my site, on both desktop and ipad it works perfect, however it doesn't work on my iPhone, when I click on the image, instead of triggering the gallery, it just goes to a new page with the bigger version of the images, does anyone know what's the problem? I've searched everywhere and can not find an answer, thanks! below is the YOXView related code I had in my file.

<script type="text/javascript">
        $(document).ready(function(){
            $("#multiGallery1").yoxview({
                images: [
                    { media: { src: '../img/pf_2.jpg' }},
                    { media: { src: '../img/pf_3.jpg' }}
                ]
            });
        });


        $(document).ready(function(){
            $("#multiGallery2").yoxview({
                images: [
                    { media: { src: '../img/pf_6.jpg'}},
                    { media: { src: '../img/pf_7.jpg'}}
                ]
            });
        });
</script>
</head>

<body>
<a href="../img/pf_1.jpg" id="multiGallery1" ><img src="../img/holder_i2.png"/></a> &nbsp;
</body>

我想通了,只需要桌面和ipad使用不同的图库ID。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM