示例工程 17-gallery-page
17-gallery-page/demo-02-picture/assets/full-desert.svg
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="640" viewBox="0 0 480 320">
<rect width="480" height="320" fill="#fef3c7"/>
<circle cx="380" cy="80" r="42" fill="#fde68a"/>
<path d="M0 250 L120 130 L210 220 L300 150 L480 260 L480 320 L0 320 Z" fill="#fde68a"/>
<path d="M0 280 L150 190 L260 260 L360 210 L480 290 L480 320 L0 320 Z" fill="#b45309" opacity="0.75"/>
<text x="30" y="52" font-family="system-ui, sans-serif" font-size="22" fill="#b45309">沙丘日落</text>
<text x="30" y="78" font-family="system-ui, sans-serif" font-size="14" fill="#b45309" opacity="0.8">自然 · 示例作品 · 大图</text>
</svg>