Introduction:
Enable any DOM element to be resizable. With the cursor grab the right
or bottom border and drag to the desired width or height.
Example:
<html> <head> <title>jQuery UI Resizable</title> <link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet"></link> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <style> #resizable { width: 150px; height: 150px; padding: 0.5em; } #resizable h3 { text-align: center; margin: 0; } </style> <script> $(function() { $( "#resizable" ).resizable(); }); </script> </head> <body> <div class="ui-widget-content" id="resizable"> <h3 class="ui-widget-header"> Resizable</h3> </div> </body> </html>
0 comments :
Post a Comment