与React的CSS中的dash-dasharray剂量工作

发布于 2025-02-04 22:17:34 字数 816 浏览 2 评论 0原文

您好,我有一些CSS代码。

  stroke-dasharray: 301.637451171875;
  stroke-dashoffset: 301.637451171875;

出于某种原因,React Dom不喜欢它,并向我扔了很多错误。

我已经弄清楚有些人在JSX中使用strokedasharray通过此通行证,但问题是我有一个CSS动画-dasharray 在我的CSS中有人知道在这种情况下我该怎么办?

以防万一。

Hello I have some CSS code.

  stroke-dasharray: 301.637451171875;
  stroke-dashoffset: 301.637451171875;

for some reason react DOM doesn't like it and throws a bunch of errors at me.
enter image description here

I had figured out that some people use strokeDasharray in their jsx to by pass this but the problem is that I have a CSS animation so I want to have stroke-dasharray in my CSS does anyone know what should I do in This case?

Some more code just in case.

enter image description here
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文