0
我在嘗試減少http請求並使用svg而不是css3的東西來玩小實驗......無法將此SVG設置爲動態縮放。理想情況下,我希望將其寬度和高度設置爲50%,並在窗口調整大小時讓瀏覽器完成剩下的工作。可調整大小的html svg圖像
下面的代碼:
<svg xmlns="http://www.w3.org/2000/svg">
<title>Daniel Hutchinson</title>
<g>
<path d="m133.936,182.53101h-8.41701v77.21298h8.05002c21.40799,0 39.70398,-11.70999 39.70398,-38.60599c0.00101,-24.70099 -16.28299,-38.60699 -39.33699,-38.60699z" clip-rule="evenodd" fill-rule="evenodd"/>
<path fill="black" d="m218.448,0c-120.646,0 -218.448,97.802 -218.448,218.448s97.802,218.448 218.448,218.448s218.448,-97.802 218.448,-218.448s-97.80301,-218.448 -218.448,-218.448zm-77.925,290.117h-50.86501v-137.95801h50.86501c38.423,0 70.07701,30.19 70.07701,68.97897s-31.83701,68.97903 -70.07701,68.97903zm210.22499,0h-35.862v-56.53699h-51.78v56.53699h-35.862v-137.95801h35.862v53.24402h51.78v-53.24402h35.862v137.95801l0,0z" clip-rule="evenodd" fill-rule="evenodd"/>
</g>
</svg>
你不能使用CSS來縮放它嗎? – tekknolagi
我會......理想情況下,我將它的寬度設置爲css中的50%,它將處理其餘 – technopeasant