1.react组件,行内样式,添加格式:css
解析为:html
2.第二种样式赋值法,定义className,使用表达式;react
3.第三种在模板中直接使用className名称,在public/index.html中定义样式;同理,写一个css,在public/index.html页面引用也是能够的:htm