--- order: 12 title: zh-CN: 自定义页签头 en-US: Customized bar of tab --- ## zh-CN 使用 react-sticky 组件实现吸顶效果。 ## en-US use react-sticky. ````jsx import { Tabs } from 'antd'; import { StickyContainer, Sticky } from 'react-sticky'; const TabPane = Tabs.TabPane; const renderTabBar = (props, DefaultTabBar) => ( {({ style }) => ( )} ); ReactDOM.render( Content of Tab Pane 1 Content of Tab Pane 2 Content of Tab Pane 3 , mountNode ); ````