Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importSVG颜色问题 #2090

Open
a396145270 opened this issue Nov 4, 2024 · 0 comments
Open

importSVG颜色问题 #2090

a396145270 opened this issue Nov 4, 2024 · 0 comments

Comments

@a396145270
Copy link

a396145270 commented Nov 4, 2024

use标签引入的path ,无法加载上级的样式属性
如下:

<svg xmlns="http://www.w3.org/2000/svg" width="1.131ex" height="1.507ex" role="img"
    focusable="false" viewBox="0 -666 500 666" xmlns:xlink="http://www.w3.org/1999/xlink"
    aria-hidden="true" style="vertical-align: 0px;">
    <defs>
        <path id="MJX-1-TEX-N-31"
            d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path>
    </defs>
            <g data-mml-node="mstyle" fill="red" stroke="red">
                <g data-mml-node="mn">
                    <use data-c="31" xlink:href="#MJX-1-TEX-N-31"></use>
        </g>
    </g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant