Resizable of JQuery Easyui resizing

Source: Internet
Author: User

If you initialize a div and set a height width, but want to dynamically change the div size, you need to use the resizable

Resizable plug-ins are implemented in 2 ways


The first creates a resizable object from a tag

<div class= "easyui-resizable" style= "width:100px;height:100px;border:1px solid #ccc;" data-options= "maxwidth:800,maxheight:600" ></div>

Class= "Easyui-resizable" by setting the class


The second creation of resizable objects from JavaScript

Define DIV First and define the ID

<div id= "RR" style= "width:100px;height:100px;border:1px solid #ccc;" ></div>

When calling JavaScript code

$ (' #rr '). Resizable ({maxwidth:800, maxheight:600});

Common Properties:

Disabled: If set to true, the resizing is disabled.

Handles: Refers to the adjustable size (resizable) direction, ' N ' is North, ' E ' is east, and so on.

MinHeight: Minimum height when resizing.
MaxWidth: Maximum width when resizing.
Maxheigh: Maximum height when sizing.
Edge: The edges of the bounding rectangle that is resized.

This article is from the "Lao Niu Java" blog, please be sure to keep this source http://liuyj.blog.51cto.com/2340749/1590867

Resizable of JQuery Easyui resizing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.