如何定义网页中的样式style?
- 内容介绍
- 文章标签
- 相关推荐
本文共计45个文字,预计阅读时间需要1分钟。
plaintextgistfile1.txt render() { const styleComponentHeader={ header: { background: } }}
gistfile1.txtrender(){ const styleComponentHeader = { header:{ background:"#333333", color:"#FFFFFF", "padding-top":(this.state.miniHeader)?"3px":"15px", paddingBottom:(this.state.miniHeader)?"3px":"15px" }, //还可以定义系其他样式 } return( ) }
本文共计45个文字,预计阅读时间需要1分钟。
plaintextgistfile1.txt render() { const styleComponentHeader={ header: { background: } }}
gistfile1.txtrender(){ const styleComponentHeader = { header:{ background:"#333333", color:"#FFFFFF", "padding-top":(this.state.miniHeader)?"3px":"15px", paddingBottom:(this.state.miniHeader)?"3px":"15px" }, //还可以定义系其他样式 } return( ) }

