头部导航固定时,使用position: fixed; 会导致导航的宽度大于容器的宽度,引起位置的偏移

.company_navfx
        {
            position: fixed;
            top: 0px;right:0;/*这句很重要*/
            width: 100%;z-index:999;height:50px;line-height:50px;
        }

 

相关文章:

  • 2021-05-17
  • 2022-12-23
  • 2022-01-20
  • 2021-05-26
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-08-09
  • 2021-07-15
  • 2022-12-23
相关资源
相似解决方案