search

Home  >  Q&A  >  body text

Display problem with ant design - Stack Overflow

import Menu from 'antd/lib/menu';
import 'antd/lib/menu/style/css';

export default class Nav extends React.Component {
    
    constructor() {
        super();
    }
    render() {
    
        return <Menu>
                <Menu.Item>A</Menu.Item>
                <Menu.Item>B</Menu.Item>
                <Menu.Item>C</Menu.Item>
            </Menu>
    }
}

Just wrote these few lines and the display is messy. . As follows, I checked the css from the console and it was imported

PHPzPHPz2821 days ago516

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-19 10:19:37

    Must write mode="horizontal" . . . . .

    reply
    0
  • Cancelreply