--- order: 6 title: zh-CN: 位置 en-US: Position --- ## zh-CN 有四个位置,`tabPosition="left|right|top|bottom"`。在移动端下,`left|right` 会自动切换成 `top`。 ## en-US Tab's position: left, right, top or bottom. Will auto switch to `top` in mobile. ```jsx import { Tabs, Radio, Space } from 'antd'; const { TabPane } = Tabs; class Demo extends React.Component { state = { tabPosition: 'left', }; changeTabPosition = e => { this.setState({ tabPosition: e.target.value }); }; render() { const { tabPosition } = this.state; return ( <> Tab position: top bottom left right Content of Tab 1 Content of Tab 2 Content of Tab 3 ); } } export default Demo; ```