IPhone12自适应长图svg解析
原文链接:https://mp.weixin.qq.com/s/S0fpT4JbdVvdKDXG5BemWw
参考:https://developers.weixin.qq.com/community/develop/article/doc/0000e8f0ba8a88b7522926d9251813
其中一个长图的关键代码
!<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>huan</title>
</head>
<body>
<div class="rich_media_content " id="js_content" style="visibility: visible;">
<div class="rich_media_content " id="js_content" style="visibility: visible;">
<section style="overflow-anchor: none; display: block; user-select: none !important; visibility: visible;">
<section style="display: block; transform: rotate(180deg); transform-origin: center center; visibility: visible;">
<section style="display: block;height: 0 !important;margin-top: -1px;">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 5344" style="display: block;">
<g>
<foreignObject x="0" y="0" width="1080" height="2918">
<svg height="2918" style="display: block;background-image: url("https://mmbiz.qpic.cn/mmbiz_png/s37uxK5D5wmwNs8K7ia5xt8qohrGB3zfzN2dJOamib7zTVibO0Tia13cOo6xWQCtjlg2cSgclq7Vict7D3bgacQULmw/640");background-size: 100% auto;background-repeat: no-repeat;" width="1080" xmlns="http://www.w3.org/2000/svg">
</svg>
</foreignObject>
<foreignObject x="0" y="2917" width="1080" height="2427">
<svg height="2427" style="display: block;background-image: url("https://mmbiz.qpic.cn/mmbiz_png/s37uxK5D5wmwNs8K7ia5xt8qohrGB3zfzhESaInkl8RXhFf16OFfJIclc46KUK63Me0a2uZtEW6WzN4SZ1xRL7Q/640");background-size: 100% auto;background-repeat: no-repeat;" width="1080" xmlns="http://www.w3.org/2000/svg">
</svg>
</foreignObject>