我有一個名為的檔案loadingReviewButtonSpinner.gif
,并且該檔案保存在我的計算機上我的專案影像 ( assets/images
) 所在的檔案夾中,但我試圖在我的 SVG 中參考這個檔案,但它不起作用。
<svg
<image
width="70" height="70"
transform="translate(30.1 -7.5)"
href="loadingReviewButtonSpinner.gif"
/>
</svg>
我也將同一張圖片 ( loadingReviewButtonSpinner.gif
) 上傳到在線服務器,當我參考在線圖片時,它可以 100% 作業
<svg
<image
width="70" height="70"
transform="translate(30.1 -7.5)"
href="https://tinypic.host/images/2022/05/18/animation_500_l1ki69jf.gif"
/>
</svg>
但我真的需要它來為我作業,指的是我的專案所在的檔案夾。
而且我已經嘗試了很多選擇,但沒有一個有效......
例如,我試過:
href="file://loadingReviewButtonSpinner.gif"
(以及路徑的變化)href="//..//..loadingReviewButtonSpinner.gif"
href="file:///loadingReviewButtonSpinner.gif"
uj5u.com熱心網友回復:
我按照評論中所說的做了,它奏效了。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/481563.html
上一篇:如何從網站下載影片SVG檔案?