谁知道如何以正确的方式自定义Ant.design样式?
例如,我要更改默认的backgroundColor和Header部分的高度:
import React, { Component } from 'react';
import { Form, Layout } from 'antd';
const { Header, Footer, Sider, Content } = Layout;
export default class Login extends Component {
render () {
return (
<div>
<Layout>
<Header style={{backgroundColor: '#555555', height: '5vh'}}>header</Header>
<Layout>
<Content>main content</Content>
</Layout>
<Footer>footer</Footer>
</Layout>
</div>
)
}
}
Run Code Online (Sandbox Code Playgroud)
可以,还是有更好的自定义样式的方法?因为我还没有找到某些组件的属性或smth。像这样。