gpt4 book ai didi

css - svg 中圆的双描边颜色

转载 作者:技术小花猫 更新时间:2023-10-29 11:18:50 28 4
gpt4 key购买 nike

这就是我如何只用描边而没有填充的圆圈

fill: none !important;
stroke-width: 1px;
  • 我想要双冲程。

最佳答案

遗憾的是,您不能将 SVG 设置为双笔划,只能设置虚线或实线笔划。

相反,只需创建一个完全相同的元素,但根据需要减小它的大小/半径。

.circle {
fill: none;
stroke: black;
}
<svg height="100" width="100">
<circle class="circle" cx="50" cy="50" r="40" stroke-width="1" />
<circle class="circle" cx="50" cy="50" r="38" stroke-width="1" />
</svg>

关于css - svg 中圆的双描边颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32369499/

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