在 <use><svg> 中组合多个

问题描述 投票:0回答:1
html svg
1个回答
0
投票

Kudo 致@enxaneta,答案是:

<div>
    <svg width="64" height="64" fill="currentColor">
        <!-- 100% -->
        <use href="#bi-heart" width="64" height="64"></use>
        <!-- 50%, centered -->
        <use href="#bi-stag"  width="32" height="32" x="16" y="16"></use>
    </svg>
</div>
© www.soinside.com 2019 - 2024. All rights reserved.