主页

svg 文件增加 style 样式

2023-11-18 07:12PM

想要在这个 svg 文件中增加 style 

<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56" fill="none">
  <circle cx="28" cy="28" r="28" fill="url(#paint0_linear_66_33024)"/>
  <defs>
    <linearGradient id="paint0_linear_66_33024" x1="56" y1="27.9999" x2="-3.75509e-06" y2="27.9999" gradientUnits="userSpaceOnUse">
      <stop stop-color="#FF45A9"/>
      <stop offset="1" stop-color="#F95151"/>
    </linearGradient>
  </defs>
</svg>

可以在第一行中增加 style 代码

 <svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56" fill="none" style="z-index: -1; position: absolute">

 

返回>>

登录

请登录后再发表评论。

评论列表:

目前还没有人发表评论