ccfalling
V2EX  ›  iOS

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

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