提问人:atri 提问时间:9/1/2023 更新时间:9/1/2023 访问量:20
transform-style 属性在 jsx 中不能用作内联样式
transform-style attribute not working as inline style in jsx
问:
我正在尝试在 React 中将以下 CSS 属性添加为内联样式,但它没有出现在生成的 dom 树元素上。
有谁知道这个属性在 React jsx 中是否支持作为内联样式?正确的使用方法是什么?
<div style={{ transformStyle: 'preserve-3d' }} />
答: 暂无答案
评论