【发布时间】:2017-11-14 16:07:44
【问题描述】:
我目前使用以下语法将状态颜色嵌入到 jsx。
<div className="preview-box" style={{backgroundColor:this.state.color}}>
有没有办法使用 css 中的 lighten 功能来做这样的事情?
<div className="preview-box" style={{backgroundColor: lighten(this.state.color, 15%)}}>
【问题讨论】: