剪下到圓形路徑
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<clipPath id="circleClip">
<circle cx="50" cy="60" r="20" />
</clipPath>
</defs>
<image width="100" height="100" style="clip-path:url(#circleClip)" xlink:href="https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-icon.png" />
</svg>
原始標誌 | 剪裁後的徽標 |
---|---|