这是我的SVG:
<svg viewBox="0 0 1226 340" id="back-rainbow" preserveAspectRatio="none">
<defs>
<linearGradient x1="100%" y1="0%" x2="0%" y2="15%" id="back-rainbow-gradient">
<stop stop-color="#8DC6D8" offset="12%"/>
<stop stop-color="#CE97DF" offset="40%"/>
<stop stop-color="#FFCF9F" offset="90%"/>
</linearGradient>
</defs>
<path d="M1074 0C673.94.2 303.56 126 0 340h1226V6c-50.1-3.72-100.95-5.8-152-6z"
fill="url(#back-rainbow-gradient)" />
</svg>
&#13;
它适用于chrome,但prublem在firefox中。我的SVG在firefox中没有颜色!!