为了账号安全,请及时绑定邮箱和手机立即绑定

react中函数的style如何优雅地写多个?

react中函数的style如何优雅地写多个?

慕码人2483693 2018-09-08 10:42:25
        this.refs.regular.style.color="#000";        this.refs.picWord.style.color="#94979c";        this.refs.interact.style.color="#94979c";        this.refs.regular.style.borderBottom = "solid 2px #373F42";        this.refs.picWord.style.borderBottom="none";        this.refs.interact.style.borderBottom="none";这段代码如何优雅点写?实在受不了这样一个一个style写下来。。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1553 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号