javascript 可拖动、可调整大小和可移动的 iframe
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3843287/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Draggable, resizable and movable iframe
提问by ammar
I can't find any draggable, resizable and movable iframe on the web. Can anybody help? jQuery would be better.
我在网上找不到任何可拖动、可调整大小和可移动的 iframe。有人可以帮忙吗?jQuery 会更好。
回答by Filip Cornelissen
This isn't a jQuery solution, but it seems to work: http://www.mattkruse.com/javascript/dragiframe/
这不是 jQuery 解决方案,但它似乎有效:http: //www.mattkruse.com/javascript/dragiframe/
or if you really want jquery, you could wrap the iframe inside a draggable/resizable div.. like this: http://jsfiddle.net/7uTTs/
或者如果你真的想要 jquery,你可以将 iframe 包裹在一个可拖动/可调整大小的 div 中..像这样:http: //jsfiddle.net/7uTTs/

