美文网首页
react-sticky 设置 top left right b

react-sticky 设置 top left right b

作者: 买买买买菜 | 来源:发表于2020-05-11 15:13 被阅读0次

    react-sticky 样式覆盖

    1. style
    2. stickyStyle
    import { StickyContainer, Sticky } from 'react-sticky';
    
    <StickyContainer>
      <Sticky topOffset={-90} style={{zIndex:9999}} stickyStyle={{top:90}}>
          <MyTabs/>
      <Sticky>
    </StickyContainer>
    

    相关文章

      网友评论

          本文标题:react-sticky 设置 top left right b

          本文链接:https://www.haomeiwen.com/subject/gdpunhtx.html