示例工程 14-figure-picture

14-figure-picture/demo-01-figure/assets/wide.svg

xml · 0.6 KB

运行:figure 演示

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

<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400">
  <rect width="800" height="400" fill="#eff6ff"/>
  <rect x="40" y="40" width="300" height="320" rx="14" fill="#bfdbfe" stroke="#2563eb" stroke-width="4"/>
  <rect x="380" y="100" width="380" height="200" rx="14" fill="#dbeafe" stroke="#2563eb" stroke-width="4"/>
  <text x="190" y="210" font-family="system-ui, sans-serif" font-size="26" fill="#1e3a8a" text-anchor="middle">宽屏布局</text>
  <text x="570" y="210" font-family="system-ui, sans-serif" font-size="26" fill="#1e3a8a" text-anchor="middle">横向排列</text>
</svg>