2012-10-13 46 views
0

我的線性漸變使用SVG創建時出現問題。我無法在Firefox中將它擴展到250像素左右。 這是我到目前爲止。SVG線性漸變大小在Firefox中沒有變化

<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> 
+0

你能解釋一下你需要什麼尺寸? – Mab879

+0

你最外面的''元素有多大? –

回答

0

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