示例工程 17-gallery-page

17-gallery-page/demo-02-picture/assets/narrow-forest.svg

xml · 0.6 KB

运行:图库与响应式图片

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

<svg xmlns="http://www.w3.org/2000/svg" width="360" height="480" viewBox="0 0 360 480">
  <rect width="360" height="480" fill="#dcfce7"/>
  <circle cx="270" cy="100" r="40" fill="#bbf7d0"/>
  <path d="M0 340 L90 220 L170 320 L250 230 L360 350 L360 480 L0 480 Z" fill="#bbf7d0"/>
  <path d="M0 390 L110 300 L210 380 L300 320 L360 400 L360 480 L0 480 Z" fill="#166534" opacity="0.75"/>
  <text x="24" y="60" font-family="system-ui, sans-serif" font-size="22" fill="#166534">晨雾森林</text>
  <text x="24" y="86" font-family="system-ui, sans-serif" font-size="14" fill="#166534" opacity="0.8">竖版裁剪</text>
</svg>