• 欢迎访问苗景云的博客

html代码

<header id="header">...</header>


Js代码

$(function () {
  $(window).scroll(function () {
   100 < $(this).scrollTop() ? $("#header").addClass('navbg') : $("#header").removeClass('navbg');
  });
 });

发布:苗景云 | 查看全文 | 浏览(2254) | 分类:IT技术&设计 | 评论(0) | 2019年04月03日
« 之后的文章苗景云的博客
<< 向左走,向右走 >>
更早的文章 »