0

我用 SVG 创建的线性渐变有问题。在 Firefox 中,我无法将其扩展到 250 像素左右。这是我到目前为止所得到的。

    <svg>
       <defs>
          <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">
             <stop offset="0%" style="stop-color:rgb(0, 124, 57);stop-opacity:1" />
         <stop offset="100%" style="stop-color:rgb(0, 100, 47);stop-opacity:1" />
          </linearGradient>
   </defs>
   <rect width="" height="34" fill="url(#grad1)" />
</svg>
4

1 回答 1

0

<svg>将元素更改为<svg height="100%" width="100%">

于 2012-10-13T08:05:06.690 回答