admin管理员组

文章数量:1414628

Does anyone know of any alternative jQuery plugins to the resizable function in jQuery UI? My main focus is on constraining the bounding box (parent), and the aspect ratio of the image.

Does anyone know of any alternative jQuery plugins to the resizable function in jQuery UI? My main focus is on constraining the bounding box (parent), and the aspect ratio of the image.

Share Improve this question asked Jul 31, 2009 at 5:22 mickyjtwinmickyjtwin 4,99013 gold badges60 silver badges77 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

You can use the CSS "resize" attribute. See this page: http://www.css3.info/preview/resize/

I don't know why you need an alternative if you can do that with jQuery UI resizable.

Here are some demos:

  • preserve aspect ratio
  • contrain resize area
  • max/min size

All you need to do is just set your image CSS styles so that it resizes with the resizable box.

本文标签: javascriptAlternatives to jQuery UI ResizableStack Overflow