【发布时间】:2019-07-08 12:19:15
【问题描述】:
const customPanelStyle = {
'background-color': 'red',
'border': '1px solid green',
':hover'{
'background': 'blue'
}
}
class some extends React.Component{
render(){
return(
<Panel header={value} key="1" style={customPanelStyle} >
<p>{this.state.content[key]}</p>
</Panel>
)
}
}
在这种情况下如何使用o属性hover?我的例子不起作用..我该怎么办?
【问题讨论】:
标签: javascript css reactjs