jq写一个渐入渐出
来源:互联网 发布:淘宝代理免费加盟 编辑:程序博客网 时间:2024/05/29 19:01
css代码: *{ padding:0; margin:0; } #box{ width:100%; height:60px; background:darkred; display: none; } #box2{ width:100%; height:60px; background:darkred; display: none; bottom:0; position: absolute; } body{ background:green; height:2000px; } html代码: <div id="box"></div> <div id="box2"></div>jq代码:<script src="js/jquery-1.10.1.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> $(function(){ $(window).scroll(function(){ if($(window).scrollTop() == 0){ $('#box').fadeIn(); }else{ $('#box').fadeOut(); } }) }) </script>
阅读全文
0 0
- jq写一个渐入渐出
- jq写一个轮播图
- 写一个简单的jq插件
- jq用户扩展写代码
- 使用JQ写动态表格。
- jq写无缝轮播
- 一个jQ的小例子
- JS_自己写的JQ插件
- 从0开始写jq框架
- 新手如何开始写jq插件
- 利用data-*属性与jq写动画
- JQ 写带!important 的css样式
- jq和原声js写视频上传
- jQ
- jQ
- jq
- jq
- JQ
- 垃圾回收
- wamp 3.0.6(apache 2.4.23) 403 forbidden 解决办法
- leetcode刷题详解——Add Two Numbers(02)
- postgresql源代码分析
- iOS开屏广告解决方案XHLaunchAd 3.0
- jq写一个渐入渐出
- Python3图片爬虫
- C++学习笔记之鼠标绘图
- 访问nginx服务器下*.html文件是提示404错误
- Swift:iOS App 上传App Store -xcode8.3.3
- spring mvc 动态读配置文件
- mybatis 分页查询
- Android完整性校验
- 润乾v5自定义配色方案