博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
js实现可拉伸移动的div
阅读量:5998 次
发布时间:2019-06-20

本文共 1849 字,大约阅读时间需要 6 分钟。

Div Drag/Resize Demo

DragResize v1.0

by Angus Turnbull -
http://www_php168_com.Updated: 27 June 2006.

Div 0
Content
Div 1
Content
Div 2Content

This is a JavaScript library that lets you easily implement user-friendlyand customisable dragging and resizing of your page elements. You might want touse it as part of a web application -- it contains all you need for alightweight "windowing" system. Features include:

  • Can both drag and resize page elements.
  • Works with absolute and relatively positioned elements in your page.
  • Customisable appearance as it makes extensive use of CSS classes for layout of its resisze handles.
  • Unobtrusive, Object-Orientated JavaScript means it's easy to add to your pages.
  • Bounding boxes and minimum sizes can be set and automatically enforced.
  • Cross-browser compatible so it works for everyone.
  • Small code size so your visitors don't have to wait!

Script License Agreement

DragResize © 2005-2006 Angus Turnbull, TwinHelix Designshttp://www.twinhelix.com

Licensed under the CC-GNU LGPL, version 2.1 or later.

This is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I hope you find it handy!It's free for you to use and distribute, as long as you retain the license andcopyright as per the LGPL.If you like this and/or my other scripts, you're more than welcome tomake a donation.See the source for more details and instructions.

Note: DragResize was conceived initially as part of my work on theFotonotes DHTML Client.

Good luck - Angus.

参考出处:http://www.99n9.com/note/view/id/1818

转载于:https://www.cnblogs.com/yeminglong/p/4936439.html

你可能感兴趣的文章
Redis--优化
查看>>
JSTL截取字符串以及格式化时间
查看>>
Bugtags 使用技巧之 setUserData
查看>>
Go语言标准库之JSON编解码
查看>>
使用windows search 搜索文件和文件夹(一)
查看>>
“江苏科技”背后有哪些大咖倾力参与?
查看>>
mysql优化
查看>>
mysqldump & binlog做完全备份
查看>>
杨辉三角
查看>>
Zabbix 2.4 —— Trigger Founction
查看>>
centos修改主机名
查看>>
LVS集群的基础概念篇
查看>>
python中read() readline()以及readlines()用法
查看>>
网络知识汇总(1)-朗文和牛津英语词典网址
查看>>
选择排序(C语言实现) 分类: 数据结构 2015-...
查看>>
Java设计模式学习
查看>>
Quartz_1_简单编程式任务调度使用(SimpleTrigger)
查看>>
web api 初体验 解决js调用跨域问题
查看>>
centos 安装docker
查看>>
互联网架构的三板斧
查看>>