0

                <svg class="icon" aria-hidden="true" >
                    <use  xlink:href="#icon-shangchengxitongtubiaozitihuayuanwenjian62">            </use>
                </svg>

font-size: 120%写在哪里生效 svg和use元素里面都不会生效

1 个回答

0

css里面加一个font-size: 40px;

<style type="text/css">
    .icon {
        width: 1em; height: 1em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        **font-size: 40px;**
    }
</style>