摘要: onbeforeunload 使用方法 window.onbeforeunload=function(){ return ‘’; } 有返回值才能弹出显示,或者有需要执行的事件也行。 阅读全文
posted @ 2016-11-17 11:04 lizhiweii 阅读(6722) 评论(0) 推荐(1) 编辑
摘要: display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; 两行超出隐藏 overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -w 阅读全文
posted @ 2016-11-15 12:06 lizhiweii 阅读(8928) 评论(3) 推荐(0) 编辑
摘要: 页面滚动到底部 查询数据 无限加载 没有底部显示 没有更多 原理:1、输入url进入页面 2、一进页面就ajax--控制器 查询数据库 控制器得到数据 进行html标签拼接 ajax返回给html3、ajax得到拼接串 添加到指定位置 显示 4、js获取窗口大小 当滚动到底部 再次ajax 控制器 阅读全文
posted @ 2016-11-10 16:10 lizhiweii 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: function goHomeTop() { $('html, body').animate({ scrollTop: 0 }, 'slow') } 阅读全文
posted @ 2016-11-10 16:09 lizhiweii 阅读(111) 评论(0) 推荐(0) 编辑
摘要: img:hover { transform: scale(1.2); -webkit-transform: scale(1.2); -moz-transform: scale(1.2); -o-transform: scale(1.2); -ms-transform: scale(1.2);} 阅读全文
posted @ 2016-11-10 16:08 lizhiweii 阅读(642) 评论(0) 推荐(0) 编辑