g是模式修正符,表示在整个字符串里多次查找 match方法来找到和reg正则相匹配的内容 "ab23839cd".match(/\d+/) 空白\s(包括空格回车制表符等) \f匹配换页符,\n匹配换行符,\r匹配回车,\t匹配制表符,\v匹配垂直制表符。 \s匹配单个空格,等同于[\f\n\r\t ...
分类:
Web程序 时间:
2017-07-02 21:14:50
阅读次数:
239
概述 -webkit-overflow-scrolling 属性控制元素在移动设备上是否使用滚动回弹效果. 值 auto 使用普通滚动, 当手指从触摸屏上移开,滚动会立即停止。 touch 使用具有回弹效果的滚动, 当手指从触摸屏上移开,内容会继续保持一段时间的滚动效果。继续滚动的速度和持续的时间和 ...
分类:
Web程序 时间:
2017-06-28 13:19:14
阅读次数:
315
In this lesson we'll show how to use the AutoSizer component from react-virtualized to automatically measure the width/height of our content area. We' ...
分类:
其他好文 时间:
2017-06-27 08:09:31
阅读次数:
179
移动端使用 zepto 做一些基于触摸的动画的时候。须要开发一个函数库。功能:实例化对象以后可以,触发对应的事件,可以返回给我,当前的移动方向和 X 轴 或者 Y 轴 的移动位移。var TouchDirection = function(e) { var startThat = {}, moveT ...
分类:
其他好文 时间:
2017-06-23 13:07:18
阅读次数:
203
如上图,.fb-box是一个大div,包含着页面上的所有元素,包括所看到的那个弹窗.dialog-img,并且设置了height:100%;-webkit-overflow-scrolling:touch; 但是这样设置,在ios上会有一个bug,页面滚动一定的距离后,点击了显示弹窗,再关闭的话,就 ...
分类:
移动开发 时间:
2017-06-13 17:08:03
阅读次数:
248
<iframesrc="http://www.baidu.com/web/liuyan"id="ifrm"onload="loadFrame(this)"frameborder="0"scrolling="no"width="71%"height="1500"></iframe>
<scripttype="text/javascript">
functionloadFrame(obj){
$(‘html,body‘).animate({
scrollTop:$(..
分类:
Web程序 时间:
2017-06-13 14:27:27
阅读次数:
231
Ordinarily, overflow: hidden; on the body tag is sufficient to prevent scrolling a web page, if for instance you’re creating a drawer to hold content ...
分类:
移动开发 时间:
2017-06-10 16:58:22
阅读次数:
2253
-webkit-overflow-scrolling 用来控制元素在移动设备上是否使用滚动回弹效果.兼容安卓和IOS的写法如下: 取值: auto使用普通滚动, 当手指从触摸屏上移开,滚动会立即停止。touch使用具有回弹效果的滚动, 当手指从触摸屏上移开,内容会继续保持一段时间的滚动效果。继续滚动 ...
分类:
Web程序 时间:
2017-06-09 13:26:53
阅读次数:
295
这里,<iframe src="Untitled-3.html" width="0" height="0" scrolling="no" frameborder="0">,隐藏了一个网页。 ...
分类:
Web程序 时间:
2017-06-08 17:51:46
阅读次数:
159