Giter Club home page Giter Club logo

Comments (5)

congyingww avatar congyingww commented on June 8, 2024

请教一下,我ios图片预览,点击图片没反应,是怎么回事

from previewimage-mobile.

zhcy091220 avatar zhcy091220 commented on June 8, 2024

@congyingww 你是iOS8吗?如果是iOS8可能是iOS的版本太低不支持,iOS9.2没问题,我用虚拟机试测试过。

from previewimage-mobile.

zuobaiquan avatar zuobaiquan commented on June 8, 2024

安卓4.4以下、ios8版本不兼容。和玉大师一起纠结了一下午。。

from previewimage-mobile.

yanghuiLu avatar yanghuiLu commented on June 8, 2024

里面用了transform translate3d scale作为移动和放大用 ios只支持9.2以上,如果想要做兼容可以根据ios版本号,修改下里面的translateScale函数对低版本降级使用position,和width,height进行位移和放大

from previewimage-mobile.

zuobaiquan avatar zuobaiquan commented on June 8, 2024

@yanghuiLu 并不是,需要对低版本的样式加前缀就好了。-webkit 需要都加下,translate3d 只是对iphone4不兼容。对ios8.0及低版本安卓手机,添加前缀即可。亲测有效。

from previewimage-mobile.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.