ccfalling
V2EX  ›  iOS

关于 base64 的图片在 ios 的 webview 中首次不渲染的问题

  •  
  •   ccfalling · Oct 14, 2019 · 3631 views
    This topic created in 2426 days ago, the information mentioned may be changed or developed.

    最近开发过程中,base64 的图片在 ios 的 webview 里面突然不显示,也不占宽度。但是在安卓就正常的,浏览器测试也正常的?在 mac 中联机调试后发现,原本的标签,在 ios webview 里首次渲染会增加一个 style,变成。谷歌也没找到原因,有人知道是怎么回事吗?

    3 replies    2019-10-14 17:33:32 +08:00
    ccfalling
        1
    ccfalling  
    OP
       Oct 14, 2019
    题目的两个图片是 img 标签,第一个是正常 src = base64 字符串,第二次是 img 标签里有 style 属性,display 为 none 和 height 为 0 ;不知道为啥 ios 里对自己加入这个样式
    gqbre
        2
    gqbre  
       Oct 14, 2019
    会不会是 webp 格式的图片...
    Building
        3
    Building  
       Oct 14, 2019 via iPhone
    iOS Webview 有 bug 很正常,只能等 iOS 升级...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5479 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 06:45 · PVG 14:45 · LAX 23:45 · JFK 02:45
    ♥ Do have faith in what you're doing.