gpt4 book ai didi

javascript - HTML CSS 增加 SVG 图标的描边/厚度

转载 作者:行者123 更新时间:2023-11-28 14:09:05 27 4
gpt4 key购买 nike

刚学html,如何增加 SVG 谷歌图标的笔划宽度?这似乎不起作用。

HTML:

<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>


<i class="material-icons" style="stroke-width: 100"> arrow_forward</i>

最佳答案

我看起来像是在尝试增加 SVG 的大小,而不是更改单个笔画的大小。如果是这种情况,那么您更有可能希望改用 font-size。这将调整整个图标的大小。

<i class="material-icons" style="font-size: 100px;"> arrow_forward</i>

关于javascript - HTML CSS 增加 SVG 图标的描边/厚度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56794564/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com