HTML5教程

当前位置: HTML5技术网 > HTML5教程 > HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件

HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件


  当我们为Web创造的东西,现在它是非常重要的,我们还记得网络已经从触摸板鼠标蔓延到触摸屏。有时候这是很难适应的,但经过不断努力创造一些真棒交叉设备友好的触摸和拖动!现在让我们用HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件。

源码下载  在线演示

代码:

<script src="jquery.js"></script>

<script src="dragsensitive.jquery.js"></script>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<script>

$(document).ready(function() {

    $('.content').dragSensitive({

        // The length of every row. Default is 10 items per row

        rowLength : 10,

        // The default width of the box.

        boxWidth  : 660,

        // The default height of the box.

        boxHeight : 500,

        // The rate at which grabbing pans across items

        // The default is 1.3. Increasing makes it go slower.

        rate      : 1.3,

        // Sets whether or not the UI will snap to the last

        // element when the user stops grabbing

        round     : true,

        // This amount a user can drag (in pixels) while still

        // being able to click an object. Usually clicking is

        // disabled on drag, but within a (by default) 20px movement

        // clicking will still be enabled

        mistake   : 20

    });

 });

 </script>

【HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件】相关文章

1. HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件

2. HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件

3. 惠普开源JavaScript框架Enyo更新:支持桌面和移动平台

4. 在桌面和移动端无障碍发布视频的方案整理

5. ParamQuery —— 超强的 jQuery 表格插件

6. ParamQuery —— 超强的 jQuery 表格插件

7. phonegap教程第9讲 Jquery Mobile 面板(panel)

8. Jquery Mobile html5 phonegap中 js 跨域请求数据 实现增删查

9. Telefónica与Mozilla开拓基于HTML5互联网设备

10. jQuery 特效:盒子破碎和移动动画效果

本文来源:https://www.51html5.com/a701.html

点击展开全部

﹝HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件﹞相关内容

「HTML5+jQuery实现支持桌面和移动拖动iPhone风格插件」相关专题

其它栏目

也许您还喜欢