📜  react js中渲染后如何获取div的css属性 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:31.357000             🧑  作者: Mango

代码示例1
console.log(window.getComputedStyle(ReactDOM.findDOMNode(this.refs.container)).getPropertyValue("border-radius"));// border-radius can be replaced with any other style attributes;