• 请不要在回答技术问题时复制粘贴 AI 生成的内容
chongzi77
V2EX  ›  程序员

做了个 web 导航栏,怎么实现滚动滚轮的时候导航栏的选中项跟着内容改变背景色呢?

  •  
  •   chongzi77 · Aug 9, 2016 · 2593 views
    This topic created in 3592 days ago, the information mentioned may be changed or developed.
    导航栏导航有 1/2/3 ,对应三个 div ,在一页,滑动鼠标滚轮,怎么实现导航和 div 对应?比如当前滑到了第三个 div ,那么导航 3 的背景色改变。求解释啊!!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   914 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:10 · PVG 04:10 · LAX 13:10 · JFK 16:10
    ♥ Do have faith in what you're doing.