<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                #### 1、問題描述 在svg繪制了一個面積圖,通過漸變及濾鏡無法還原成設計稿的樣式(線條填充) #### 2、問題原因 對svg的標簽及屬性不熟悉,不知道如何實現 #### 3、解決方案 使用pattern標簽,里面可以添加任何你想要的圖形如(image, rect, ellipse...) ```html <!-- 垂直漸變 --> <linearGradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%"> <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" /> <stop offset="80%" style="stop-color:rgb(255,155,0);stop-opacity:1" /> <stop offset="100%" style="stop-color:rgb(155,0,0);stop-opacity:1" /> </linearGradient> <!-- SVG圖案填充 --> <defs> <pattern id="patternFill" x="0" y="0" width="300" height="300" patternUnits="userSpaceOnUse"> <image xlink:href="../images/cat.jpg" width="300" height="400" /> </pattern> </defs> <rect x="0" y="600" width="300" height="300" fill="url(#patternFill)" stroke="blue" /> <!-- 線條填充 --> <defs> <pattern id="grid" x="20" y="100" width="0.01" height="1" > <!-- 此處的矩形使用漸變填充 --> <rect x="0" y="0" width="2" height="300" fill="url(#grad2)" stroke="none"></rect> </pattern> </defs> <!-- 這個矩形會橫向平鋪 pattern里的矩形--> <rect x="300" y="0" width="300" height="300" fill="url(#grid)" stroke="blue"></rect> ``` 填充效果如下: ![](https://box.kancloud.cn/69b1b6ae297b12e7988cbdd7e34fa1cd_308x304.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看