/** * 初始化下拉加载 */ function scrollInit(){ var bottom = 50; //下拉加载[待定问题 绑定dom元素不对] $('#tapContainer').off('scroll').on('scroll',function () { if($('#temp... ...
分类:
移动开发 时间:
2017-08-31 19:08:17
阅读次数:
322
Jquery mobiscroll 移动设备(手机)wap日期时间选择插件以及滑动、滚动插件 : http://www.cnblogs.com/linJie1930906722/p/6072984.htm ...
分类:
移动开发 时间:
2017-08-30 18:34:17
阅读次数:
203
//菜单固定随滚动条滑动 function navscroll(id){ var $sidebar = $(id), $window = $(window), offset = $sidebar.offset(), topPadding = 0; $window.scroll(function() ...
分类:
其他好文 时间:
2017-08-29 16:00:13
阅读次数:
204
<div class="mui-scroll agree-main"> //用agree-main加了背景色 <div class="mui-content" style="background-color: transparent!important;"> //用style="background ...
分类:
其他好文 时间:
2017-08-26 17:06:32
阅读次数:
139
在某个小网站的开发中客户一直抱怨在IE11中网页右边滚动条不一样后来发现在IE11中,有2个页面滚动条会自动隐藏,一开始以为是浏览器默认行为,改了overflow:scroll后也没有用。仔细观察后发现这2个页面因为用了bootshrap的特效而引用了bootshrap.css文件,于是确定是boo ...
分类:
其他好文 时间:
2017-08-26 10:23:41
阅读次数:
119
export default { watch:{ '$route':function(to,from){ document.body.scrollTop = '0'; } } } ...
分类:
其他好文 时间:
2017-08-25 11:01:38
阅读次数:
219
有这个需求,其实也不难,就是弄两个表格组合,结合marquue标签就行了,代码如下: 效果如下: ...
分类:
其他好文 时间:
2017-08-25 10:50:23
阅读次数:
138
select { /*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/ border: solid 1px #000; /*很关键:将默认的select选择框样式清除*/ appearance:none; -moz-appearance:none; -webkit-appeara ...
分类:
其他好文 时间:
2017-08-25 01:14:26
阅读次数:
100
$(document).ready(function(){ var scrollbarWidth = $('#main')[0].offsetWidth - $('#main')[0].scrollWidth; alert('滚动条的宽度是:' + scrollbarWidth + 'px'); } ...
分类:
其他好文 时间:
2017-08-24 14:51:23
阅读次数:
150
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> span{ background: #ccc; cursor: pointer; ...
分类:
其他好文 时间:
2017-08-24 00:10:29
阅读次数:
163