简体   繁体   English

YOXView在iPhone上不起作用

[英]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? 我在网站上使用了YOXV​​iew图片库,无论是在台式机还是ipad上,它都可以完美运行,但是在iPhone上却无法使用,当我单击图片而不是触发图片库时,它会转到带有图片的放大版本,有人知道有什么问题吗? I've searched everywhere and can not find an answer, thanks! 我到处搜索,找不到答案,谢谢! below is the YOXView related code I had in my file. 以下是我在文件中拥有的YOXView相关代码。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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