效果收集-滚到一定程度再漂浮
2015-09-19 18:01
274 查看
适用产品详情 导航漂浮
window.onscroll = function(){ var t = document.documentElement.scrollTop || document.body.scrollTop; var Div = document.getElementById( "fix_goods" ); if( t <= 755 ) { Div.style.position = ""; Div.style.top = ""; } else { //Div.style.display = "none"; Div.style.position = "fixed"; Div.style.top = "-10px"; } }
相关文章推荐
- Win7 64有点找不到MSVCP71.DLL和MSVCR71.dll
- 64位windows8.1编译openjdk8
- 简单计算器实现整数运算
- 七层模型与四层模型
- MySQL性别约束
- VLC for Linux 无法播放FLV视频
- 我(写的代码和文档)真是越来越英俊了
- Android Action Bar
- org.eclipse.core.runtime.CoreException: 不能连接至 VM
- mysql导入数据库出现:Incorrect string value: '\xE7\x82\xB9\xE9\x92\x9F' for column 'chinese' at row 1
- 20150908 Linux运维网络基础和TCP有限状态机状态转换原理、Linux网络属性配置及网络
- 设计模式六大原则
- LBS MongDb使用
- PG的时间函数使用整理如下
- /* Dr黄的技术博客开通啦 */
- Tomcat免安装配置2
- 蛇形填充
- DOS命令中 md cd dir 等的英文全名
- Exchange工具09—队列查看器
- HDU 5459 Jesus Is Here