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

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

  •  
  •   chongzi77 · Aug 9, 2016 · 2715 views
    This topic created in 3655 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   ·   5796 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:37 · PVG 10:37 · LAX 19:37 · JFK 22:37
    ♥ Do have faith in what you're doing.