// When the user taps the status bar, the scroll view beneath the touch which is closest to the status bar will be scrolled to top, but only if its `s ...
分类:
移动开发 时间:
2016-07-24 22:32:57
阅读次数:
274
github 地址: https://github.com/Trinea/android-auto-scroll-view-pager Gradle: 布局文件 代码设置: adapter point_bg.xml point_focured.xml point_nomal.xml ...
分类:
移动开发 时间:
2016-07-21 14:52:02
阅读次数:
249
关于$.fn.scrollPath is not a function 在做项目过程中,用到了一个jQuery的滚动路径插件——jQuery Scroll Path。引入相关的js文件后,但是控制台一直报错。如图: 在网上查了很多资料,可能有以下原因: (1)函数重名 (2)js引入顺序不对 (3) ...
分类:
其他好文 时间:
2016-07-21 00:21:27
阅读次数:
254
事件类型 UI事件 load事件 unload事件 resize事件 scroll事件 焦点事件 blur 失去焦点 focus 获得焦点 鼠标与滚轮事件 1.客户区坐标定位 clientX, clientY 2.页面坐标位置 pageX, pageY 如果不存在滚动的情况下, 两种方式取得的值是一 ...
分类:
Web程序 时间:
2016-07-19 23:29:57
阅读次数:
218
[1] slientWidth 和 sclientHeight slientWidth:获取的是可视宽度 slientHeight:获取的是可视高度 <html> <head> <style> .div1{ width:50px; height:50px; overflow:scroll; //设置 ...
分类:
其他好文 时间:
2016-07-19 18:52:48
阅读次数:
120
1、事件绑定——bind(type,[params],fn) type:事件类型,包括blur,focus,load,resize,scroll,unload,click,dbclick,mousedouwn,mouseup,mousemove,mouseover,mouseout,mouseent ...
分类:
Web程序 时间:
2016-07-15 13:36:29
阅读次数:
121
一,overfloat属性; 1,四个值: visible 默认值。内容不会被修剪,会呈现在元素框之外。 hidden 内容会被修剪,并且其余内容是不可见的。 scroll 内容会被修剪,但是浏览器会显示滚动条以便查看其余的内容。 auto 如果内容被修剪,则浏览器会显示滚动条以便查看其余的内容。 ...
分类:
其他好文 时间:
2016-07-14 22:03:32
阅读次数:
197
.nav-menu>ul>li>a::before { background: #333 none repeat scroll 0 0; bottom: -2px; content: ""; height: 2px; position: absolute;//注意a一定得是relation相对定位才 ...
分类:
其他好文 时间:
2016-07-13 20:29:03
阅读次数:
134
在自动换行设置的时候,要在EDIT控件的属性中选中"multiline"的属性和Auto_HScroll、Vertical scroll。 经过多次测试,总结出VC编辑框(EDIT)的自动换行与自动滚屏的方法。 方法一: (当EDIT映射到一CString时)m_String = m_String ...
分类:
编程语言 时间:
2016-07-12 13:54:32
阅读次数:
172