用拖动调整div中的内容 [英] Resize the content in div with the drag

查看:168
本文介绍了用拖动调整div中的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图拖动和调整div层的大小。而且我能够完美地做到这一点。但问题是我无法对div中的内容应用调整大小的效果。我试着直接将相同的元素应用于img元素,并允许我拖动元素但不让其调整大小。



http://jsfiddle.net/MwV8g/1 /

解决方案

$ h $ = $ $ $ $ $ $

I am trying to drag and resize the div layer. And i am able to do that perfectly. But the issue is i am unable to apply resize effect to the content in the div. I tried applying same to the img element directly and it allows me to drag the element around but doesn't let me resize it.

http://jsfiddle.net/MwV8g/1/

解决方案

There you go:

http://jsfiddle.net/MwV8g/18/

这篇关于用拖动调整div中的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆