\n \u60a8\u53ef\u4ee5\u4ee5\u4e24\u79cd\u5f62\u5f0f\u4f7f\u7528resizable()\u65b9\u6cd5:\n<\/div>\n
\n
$(selector, context).resizable (options) \u65b9\u6cd5
<\/span><\/code><\/pre>\n<\/div>\n\n
$(selector, context).resizable (\"action\", params) \u65b9\u6cd5
<\/span><\/code><\/pre>\n<\/div>\n$(selector, context).resizable(options)\u65b9\u6cd5<\/h2>\n\n resizable(options)\u65b9\u6cd5\u6307\u5b9a\u60a8\u53ef\u4ee5\u8c03\u6574HTML\u5143\u7d20\u7684\u5927\u5c0f\u3002\u8fd9\u91cc\u7684\u9009\u9879\uff1f\u53c2\u6570\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u5b83\u6307\u5b9a\u8c03\u6574\u5927\u5c0f\u65f6\u6d89\u53ca\u7684\u5143\u7d20\u7684\u884c\u4e3a\u3002\n<\/div>\n
\n
\u8bed\u6cd5: <\/strong>\n<\/div>\n\n
$(selector, context).resizable (options);
<\/span><\/code><\/pre>\n<\/div>\n\n \u4f7f\u7528JavaScript\u5bf9\u8c61\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u6216\u591a\u4e2a\u9009\u9879\u3002\u5982\u679c\u6709\u591a\u4e2a\u9009\u9879\uff0c\u5219\u5fc5\u987b\u4f7f\u7528\u9017\u53f7\u5c06\u5b83\u4eec\u5206\u5f00\uff0c\u5982\u4e0b\u6240\u793a:\n<\/div>\n
\n
$(selector, context).resizable ({option1: value1, option2: value2..... });
<\/span><\/code><\/pre>\n<\/div>\n\n \u4ee5\u4e0b\u662f\u53ef\u4e0e\u8be5\u65b9\u6cd5\u4e00\u8d77\u4f7f\u7528\u7684\u4e0d\u540c\u9009\u9879\u7684\u5217\u8868:\n<\/div>\n
\n\n\n\u9009\u9879<\/td>\n | \u8bf4\u660e<\/td>\n<\/tr>\n |
\nalsoResize <\/td>\n | \u6b64\u9009\u9879\u7684\u7c7b\u578b\u4e3a\u9009\u62e9\u5668\uff0cjQuery\u6216\u4efb\u4f55DOM\u5143\u7d20\u3002\u5b83\u8868\u793a\u5728\u8c03\u6574\u539f\u59cb\u5bf9\u8c61\u5927\u5c0f\u65f6\u4e5f\u4f1a\u8c03\u6574\u5927\u5c0f\u7684\u5143\u7d20\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3aFALSE\u3002<\/td>\n<\/tr>\n |
\nanimate<\/td>\n | \u5982\u679c\u5c06\u6b64\u9009\u9879\u8bbe\u7f6e\u4e3aTRUE\uff0c\u5219\u91ca\u653e\u9f20\u6807\u6309\u94ae\u65f6\uff0c\u5b83\u5c06\u5728\u8c03\u6574\u5927\u5c0f\u671f\u95f4\u542f\u7528\u89c6\u89c9\u6548\u679c\u3002\u9ed8\u8ba4\u503c\u4e3aFALSE(\u65e0\u6548)\u3002<\/td>\n<\/tr>\n |
\nanimateDuration <\/td>\n | \u6b64\u9009\u9879\u6307\u5b9a\u8c03\u6574\u5927\u5c0f\u6548\u679c\u7684\u6301\u7eed\u65f6\u95f4(\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d)\u3002\u4ec5\u5728\u52a8\u753b\u9009\u9879\u4e3atrue\u65f6\u4f7f\u7528\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3a\"\u6162\"\u3002<\/td>\n<\/tr>\n |
\nanimateEasing <\/td>\n | \u6b64\u9009\u9879\u6307\u5b9a\u4f7f\u7528\u52a8\u753b\u9009\u9879\u65f6\u5e94\u5e94\u7528\u7684\u7f13\u52a8\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3a\" swing\"\u3002<\/td>\n<\/tr>\n |
\naspectRatio <\/td>\n | \u6b64\u9009\u9879\u6307\u793a\u9879\u76ee\u7684\u7eb5\u6a2a\u6bd4(\u9ad8\u5ea6\u548c\u5bbd\u5ea6)\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3afalse\u3002<\/td>\n<\/tr>\n |
\nautoHide <\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u9690\u85cf\u653e\u5927\u56fe\u6807\u6216\u624b\u67c4\uff0c\u9664\u975e\u9f20\u6807\u60ac\u505c\u5728\u8be5\u9879\u76ee\u4e0a\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3afalse\u3002<\/td>\n<\/tr>\n |
\ncancel<\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u9632\u6b62\u8c03\u6574\u6307\u5b9a\u5143\u7d20\u7684\u5927\u5c0f\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3a\u8f93\u5165\uff0c\u6587\u672c\u533a\u57df\uff0c\u6309\u94ae\uff0c\u9009\u62e9\uff0c\u9009\u9879\u3002<\/td>\n<\/tr>\n |
\ncontainment<\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u9650\u5236\u5728\u6307\u5b9a\u5143\u7d20\u6216\u533a\u57df\u5185\u5143\u7d20\u7684\u5927\u5c0f\u8c03\u6574\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3afalse\u3002<\/td>\n<\/tr>\n |
\ndelay<\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u8bbe\u7f6e\u516c\u5dee\u6216\u5ef6\u8fdf(\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d)\u3002\u4e4b\u540e\uff0c\u5c06\u5f00\u59cb\u8c03\u6574\u5927\u5c0f\u6216\u7f6e\u6362\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3a0\u3002<\/td>\n<\/tr>\n |
\ndisabled<\/td>\n | \u5982\u679c\u5c06\u6b64\u9009\u9879\u8bbe\u7f6e\u4e3aTRUE\uff0c\u5b83\u5c06\u7981\u7528\u5927\u5c0f\u8c03\u6574\u673a\u5236\u3002\u9f20\u6807\u4e0d\u518d\u4f7f\u7528\u53ef\u8c03\u6574\u5927\u5c0f\u7684(\"\u542f\u7528\")\u6765\u8c03\u6574\u5143\u7d20\u7684\u5927\u5c0f\uff0c\u76f4\u5230\u542f\u7528\u8be5\u673a\u5236\u4e3a\u6b62\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3afalse\u3002<\/td>\n<\/tr>\n |
\ndistance<\/td>\n | \u6b64\u9009\u9879\u6307\u5b9a\u4ec5\u5728\u9f20\u6807\u79fb\u52a8\u8ddd\u79bb(\u50cf\u7d20)\u65f6\u624d\u5f00\u59cb\u8c03\u6574\u5927\u5c0f\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3a1\u50cf\u7d20\u3002\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u9632\u6b62\u5728\u5355\u51fb\u5143\u7d20\u65f6\u610f\u5916\u8c03\u6574\u5927\u5c0f\u3002<\/td>\n<\/tr>\n |
\n ghost <\/td>\n | \u5982\u679c\u5c06\u6b64\u9009\u9879\u8bbe\u7f6e\u4e3aTRUE\uff0c\u5c06\u663e\u793a\u4e00\u4e2a\u534a\u900f\u660e\u7684\u8f85\u52a9\u5143\u7d20\uff0c\u7528\u4e8e\u8c03\u6574\u5927\u5c0f\u3002\u91ca\u653e\u9f20\u6807\u65f6\uff0c\u6b64\u5e7b\u5f71\u9879\u5c06\u88ab\u5220\u9664\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3afalse\u3002<\/td>\n<\/tr>\n |
\ngrid<\/td>\n | \u6b64\u9009\u9879\u7684\u7c7b\u578b\u4e3a\u6570\u7ec4[x\uff0cy]\uff0c\u6307\u793a\u5143\u7d20\u5728\u9f20\u6807\u79fb\u52a8\u8fc7\u7a0b\u4e2d\u6c34\u5e73\u548c\u5782\u76f4\u6269\u5c55\u7684\u50cf\u7d20\u6570\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3afalse\u3002<\/td>\n<\/tr>\n |
\nhandles<\/td>\n | \u6b64\u9009\u9879\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5b83\u6307\u5b9a\u53ef\u4ee5\u8c03\u6574\u5143\u7d20\u7684\u54ea\u4e9b\u8fb9\u6216\u89d2\u5ea6\u7684\u5927\u5c0f\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3ae\uff0cs\uff0cse\u3002<\/td>\n<\/tr>\n |
\nhelper<\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u6dfb\u52a0CSS\u7c7b\u6765\u8bbe\u7f6e\u8981\u8c03\u6574\u5927\u5c0f\u7684\u5143\u7d20\u7684\u6837\u5f0f\u3002\u8c03\u6574\u5143\u7d20\u5927\u5c0f\u65f6\uff0c\u5c06\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 <\/p>\n\n \u5143\u7d20\uff0c\u8be5\u5143\u7d20\u5c06\u8fdb\u884c\u7f29\u653e(UI-resizable-helper\u7c7b)\u3002\u8c03\u6574\u5927\u5c0f\u540e\uff0c\u5c06\u8c03\u6574\u539f\u59cb\u5143\u7d20\u7684\u5927\u5c0f\uff0c\u5e76\u4e14 <\/p>\n \n \u5143\u7d20\u6d88\u5931\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3afalse\u3002\n <\/div>\n<\/p><\/div>\n<\/td>\n<\/tr>\n \n maxHeight <\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u8bbe\u7f6e\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u6700\u5927\u9ad8\u5ea6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3aNULL\u3002<\/td>\n<\/tr>\n | \n maxWidth <\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u8bbe\u7f6e\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u6700\u5927\u5bbd\u5ea6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3aNULL\u3002<\/td>\n<\/tr>\n | \n minHeight <\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u8bbe\u7f6e\u5e94\u8c03\u6574\u5927\u5c0f\u7684\u6700\u5c0f\u9ad8\u5ea6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3a10\u3002<\/td>\n<\/tr>\n | \n minWidth <\/td>\n | \u6b64\u9009\u9879\u7528\u4e8e\u8bbe\u7f6e\u5e94\u8c03\u6574\u5927\u5c0f\u7684\u6700\u5c0f\u5bbd\u5ea6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5176\u503c\u4e3a10\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\njQueryUI resizable()\u793a\u4f8b1<\/h2>\n\n \u8ba9\u6211\u4eec\u4e3e\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u6765\u6f14\u793a\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u529f\u80fd\uff0c\u4e0d\u5c06\u4efb\u4f55\u53c2\u6570\u4f20\u9012\u7ed9resizable()\u65b9\u6cd5\u3002\n<\/div>\n \n <!doctype html> <html lang=\"en\"> <head><\/span> <meta charset=\"utf-8\"> <title><\/span>jQuery UI Resizable functionality<\/title><\/span> <link href=\"http:\/\/code.jquery.com\/ui\/1.10.4\/themes\/ui-lightness\/jquery-ui.css\" rel=\"stylesheet\"> <script src=\"http:\/\/code.jquery.com\/jquery-1.10.2.js\"><\/script><\/span> <script src=\"http:\/\/code.jquery.com\/ui\/1.10.4\/jquery-ui.js\"><\/script><\/span> <!-- CSS --> <style><\/span> .ui-widget-header { background:lightyellow; border: 1px solid #b9cd6d; color: Red; font-weight: bold; } .ui-widget-content { background: lightgreen; border: 1px solid #DDDDDD; color: Red; } #resizable { width: 150px; height: 150px; padding: 0.5em; text-align: center; margin: 0; } <\/style><\/span> <!-- Javascript --> <script><\/span> $(function() { $( \"#resizable\").resizable(); }); <\/script><\/span> <\/head><\/span> <body><\/span> <!-- HTML --> <div id=\"resizable\" class=\"ui-widget-content\"> <h3 class=\"ui-widget-header\">Pull my edges to resize me!!<\/h3><\/span> <\/div><\/span> <\/body><\/span> <\/html><\/span> <\/span><\/code><\/pre>\n<\/div>\n jQueryUI resizable()\u793a\u4f8b2 <\/h2>\n\n \u4f7f\u7528\u52a8\u753b\u548c\u91cd\u5f71: <\/strong>\n<\/div>\n\n \u4ee5\u4e0b\u793a\u4f8b\u663e\u793a\u4e86\u4e24\u79cd\u7528\u6cd5jQuery UI\u7684\u8c03\u6574\u5927\u5c0f\u529f\u80fd\u4e2d\u7684\u9009\u9879\u52a8\u753b\u548c\u91cd\u5f71\n<\/div>\n \n <!doctype html> <html lang=\"en\"> <head><\/span> <meta charset=\"utf-8\"> <title><\/span>jQuery UI Resizable functionality<\/title><\/span> <link href=\"http:\/\/code.jquery.com\/ui\/1.10.4\/themes\/ui-lightness\/jquery-ui.css\" rel=\"stylesheet\"> <script src=\"http:\/\/code.jquery.com\/jquery-1.10.2.js\"><\/script><\/span> <script src=\"http:\/\/code.jquery.com\/ui\/1.10.4\/jquery-ui.js\"><\/script><\/span> <!-- CSS --> <style><\/span> .ui-widget-header { background:lightyellow; border: 1px solid #b9cd6d; color: Red; font-weight: bold; } .ui-widget-content { background: lightgreen; border: 1px solid #DDDDDD; color: Red; } #resizable-2,#resizable-3 { width: 150px; height: 150px; padding: 0.5em; text-align: center; margin: 0; } <\/style><\/span> <!-- JavaScript --> <script><\/span> $(function() { $( \"#resizable-2\").resizable({ animate: true }); $( \"#resizable-3\").resizable({ ghost: true }); }); <\/script><\/span> <\/head><\/span> <body><\/span> <!-- HTML --> <div id=\"resizable-2\" class=\"ui-widget-content\"> <h3 class=\"ui-widget-header\"> Pull my edges and Check the animation!! <\/h3><\/span> <\/div><\/span><br> <div id=\"resizable-3\" class=\"ui-widget-content\"> <h3 class=\"ui-widget-header\">I'm ghost!!<\/h3><\/span> <\/div><\/span> <\/body><\/span> <\/html><\/span> <\/span><\/code><\/pre>\n<\/div>\n jQuery UI resizable()\u793a\u4f8b3 <\/h2>\n\n delay\uff0cdistance\u548cautoHide\u7684\u4f7f\u7528: <\/strong>\n<\/div>\n\n \u4ee5\u4e0b\u793a\u4f8b\u663e\u793a\u4e86\u5728jQuery UI\u7684\u8c03\u6574\u5927\u5c0f\u529f\u80fd\u4e2d\u4f7f\u7528\u4e09\u4e2a\u9009\u9879delay\uff0cdistance\u548cautoHide\u3002\n<\/div>\n \n <!doctype html> <html lang=\"en\"> <head><\/span> <meta charset=\"utf-8\"> <title><\/span>jQuery UI Resizable functionality<\/title><\/span> <link href=\"http:\/\/code.jquery.com\/ui\/1.10.4\/themes\/ui-lightness\/jquery-ui.css\" rel=\"stylesheet\"> <script src=\"http:\/\/code.jquery.com\/jquery-1.10.2.js\"><\/script><\/span> <script src=\"http:\/\/code.jquery.com\/ui\/1.10.4\/jquery-ui.js\"><\/script><\/span> <style><\/span> .ui-widget-header { background:lightgreen; border: 1px solid #b9cd6d; color: red; font-weight: bold; } .ui-widget-content { background: lightgreen; border: 1px solid #DDDDDD; color: black; } .square { width: 150px; height: 150px; border: 1px solid black; text-align: center; float: left; margin-left: 20px; -right: 20px; } <\/style><\/span> <script><\/span> $(function() { $( \"#resizable-5\").resizable({ delay: 1000 }); $( \"#resizable-6\").resizable({ distance: 40 }); $( \"#resizable-7\").resizable({ autoHide: true }); }); <\/script><\/span> <\/head><\/span> <body><\/span> <div id=\"resizable-5\" class=\"square ui-widget-content\"> <h3 class=\"ui-widget-header\"> Resize starts after delay of 1000ms <\/h3><\/span> <\/div><\/span><br> <div id=\"resizable-6\" class=\"square ui-widget-content\"> <h3 class=\"ui-widget-header\"> Resize starts at distance of 40px <\/h3><\/span> <\/div><\/span><br> <div id=\"resizable-7\" class=\"square ui-widget-content\"> <h3 class=\"ui-widget-header\"> Hover over me to see the magnification icon! <\/h3><\/span> <\/div><\/span> <\/body><\/span> <\/html><\/span> <\/span><\/code><\/pre>\n<\/div>\n jQuery UI resizable()\u793a\u4f8b4 <\/h2>\n\n \u5bf9AlsoResize\u7684\u4f7f\u7528: <\/strong>\n<\/div>\n\n \u4ee5\u4e0b\u793a\u4f8b\u6f14\u793a\u4e86\u5bf9AlsoResize\u9009\u9879\u7684\u4f7f\u7528\u3002\u5728jQuery UI\u7684\u8c03\u6574\u5927\u5c0f\u529f\u80fd\u4e2d\u3002\n<\/div>\n \n <!doctype html> <html lang=\"en\"> <head><\/span> <meta charset=\"utf-8\"> <title><\/span>jQuery UI Resizable functionality<\/title><\/span> <link href=\"http:\/\/code.jquery.com\/ui\/1.10.4\/themes\/ui-lightness\/jquery-ui.css\" rel=\"stylesheet\"> <script src=\"http:\/\/code.jquery.com\/jquery-1.10.2.js\"><\/script><\/span> <script src=\"http:\/\/code.jquery.com\/ui\/1.10.4\/jquery-ui.js\"><\/script><\/span> <!-- CSS --> <style><\/span> .ui-widget-header { background:yellow; border: 1px solid #b9cd6d; color: red; font-weight: bold; } .ui-widget-content { background: lightgreen; border: 1px solid #DDDDDD; color: red; } #resizable-8,#resizable-9{ width: 150px; height: 150px; padding: 0.5em;text-align: center; margin: 0; } <\/style><\/span> <!-- Javascript --> <script><\/span> $(function() { $( \"#resizable-8\").resizable({ alsoResize: \"#resizable-9\" }); $( \"#resizable-9\").resizable(); }); <\/script><\/span> <\/head><\/span> <body><\/span> <!-- HTML --> <div id=\"resizable-8\" class=\"ui-widget-content\"> <h3 class=\"ui-widget-header\">Resize Me!!<\/h3><\/span> <\/div><\/span><br> <div id=\"resizable-9\" class=\"ui-widget-content\"> <h3 class=\"ui-widget-header\">I also get resized!!<\/h3><\/span> <\/div><\/span> <\/body><\/span> <\/html><\/span> <\/span><\/code><\/pre>\n<\/div>\n$(selector, context).resizable (\"action\", params)\u65b9\u6cd5<\/h2>\n\n \u53ef\u8c03\u6574\u5927\u5c0f(\"\u64cd\u4f5c\"\uff0c\u53c2\u6570)\u65b9\u6cd5\u7528\u4e8e\u5bf9\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u5143\u7d20\u6267\u884c\u64cd\u4f5c\u3002\u4f8b\u5982: \u5141\u8bb8\u6216\u7981\u6b62\u8c03\u6574\u529f\u80fd\u5927\u5c0f\u3002\u8be5\u64cd\u4f5c\u5728\u7b2c\u4e00\u4e2a\u53c2\u6570\u4e2d\u6307\u5b9a\u4e3a\u5b57\u7b26\u4e32(\u4f8b\u5982\uff0c\" disable\"\u4ee5\u9632\u6b62\u8c03\u6574\u5927\u5c0f)\u3002\n<\/div>\n \n \u8bed\u6cd5: <\/strong>\n<\/div>\n\n $(selector, context).resizable(\"action\", params); <\/span><\/code><\/pre>\n<\/div>\n\n \u4ee5\u4e0b\u662f\u53ef\u4e0e\u8be5\u65b9\u6cd5\u4e00\u8d77\u4f7f\u7528\u7684\u64cd\u4f5c\u7684\u5217\u8868:\n<\/div>\n \n\n\n\u52a8\u4f5c<\/td>\n | \u8bf4\u660e<\/td>\n<\/tr>\n | \ndestroy<\/td>\n | \u6b64\u64cd\u4f5c\u7528\u4e8e\u5b8c\u5168destroy\u5143\u7d20\u7684\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u529f\u80fd\u3002\u8fd9\u5c06\u4f7f\u5143\u7d20\u8fd4\u56de\u5176\u521d\u59cb\u72b6\u6001\u3002<\/td>\n<\/tr>\n | \ndisable<\/td>\n | \u6b64\u64cd\u4f5c\u7528\u4e8e\u7981\u7528\u5143\u7d20\u7684\u5927\u5c0f\u8c03\u6574\u529f\u80fd\u3002\u6b64\u65b9\u6cd5\u4e0d\u63a5\u53d7\u4efb\u4f55\u53c2\u6570\u3002<\/td>\n<\/tr>\n | \nenable<\/td>\n | \u6b64\u64cd\u4f5c\u7528\u4e8e\u542f\u7528\u5143\u7d20\u7684\u8c03\u6574\u5927\u5c0f\u529f\u80fd\u3002\u6b64\u65b9\u6cd5\u4e0d\u63a5\u53d7\u4efb\u4f55\u53c2\u6570\u3002<\/td>\n<\/tr>\n | \n option(optionName)<\/td>\n | \u6b64\u64cd\u4f5c\u5c06\u68c0\u7d22\u6307\u5b9a\u7684optionName\u7684\u503c\u3002\u6b64\u9009\u9879\u5bf9\u5e94\u4e8e\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u9009\u9879(\u9009\u9879)\u3002<\/td>\n<\/tr>\n | \n option()<\/td>\n | \u6b64\u64cd\u4f5c\u7528\u4e8e\u83b7\u53d6\u5305\u542b\u8868\u793a\u5f53\u524d\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u9009\u9879\u54c8\u5e0c\u7684\u952e\/\u503c\u5bf9\u7684\u5bf9\u8c61\u3002\u6b64\u64cd\u4f5c\u4e0d\u63a5\u53d7\u4efb\u4f55\u53c2\u6570\u3002<\/td>\n<\/tr>\n | \n option(optionName\uff0cvalue)<\/td>\n | \u6b64\u64cd\u4f5c\u4f7f\u7528\u6307\u5b9a\u7684optionName\u8bbe\u7f6e\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u9009\u9879\u7684\u503c\u3002\u6b64\u9009\u9879\u5bf9\u5e94\u4e8e\u53ef\u8c03\u6574\u5927\u5c0f\u7684\u9009\u9879(\u9009\u9879)\u3002<\/td>\n<\/tr>\n | \n option(\u9009\u9879)<\/td>\n | \u6b64\u64cd\u4f5c\u4e3a\u53ef\u8c03\u6574\u5927\u5c0f\u8bbe\u7f6e\u4e00\u4e2a\u6216\u591a\u4e2a\u9009\u9879\u3002<\/td>\n<\/tr>\n | \n widget()<\/td>\n | \u6b64\u64cd\u4f5c\u5c06\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u53ef\u8c03\u6574\u5927\u5c0f\u5143\u7d20\u7684jQuery\u5bf9\u8c61\u3002\u6b64\u65b9\u6cd5\u4e0d\u63a5\u53d7\u4efb\u4f55\u53c2\u6570\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n jQueryUI resizable()\u793a\u4f8b5 <\/h2>\n\n \u8ba9\u6211\u4eec\u4e3e\u4e00\u4e9b\u793a\u4f8b\u6765\u6f14\u793a\u4e0a\u8868\u4e2d\u64cd\u4f5c\u7684\u7528\u6cd5\u3002\n<\/div>\n \n \u5728\u4e0b\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u6f14\u793a \n destroy()<\/strong>\u548c \n disable()<\/strong>\u65b9\u6cd5\u7684\u7528\u6cd5\u3002\n<\/div>\n\n <!doctype html> <html lang=\"en\"> <head><\/span> <meta charset=\"utf-8\"> <title><\/span>jQuery UI Resizable functionality<\/title><\/span> <link href=\"http:\/\/code.jquery.com\/ui\/1.10.4\/themes\/ui-lightness\/jquery-ui.css\" rel=\"stylesheet\"> <script src=\"http:\/\/code.jquery.com\/jquery-1.10.2.js\"><\/script><\/span> <script src=\"http:\/\/code.jquery.com\/ui\/1.10.4\/jquery-ui.js\"><\/script><\/span> <!-- CSS --> <style><\/span> .ui-widget-header { background:yellow; border: 1px solid #b9cd6d; color: red; font-weight: bold; } .ui-widget-content { background: lightgreen; border: 1px solid #DDDDDD; color: red; } #resizable-12,#resizable-13 { width: 150px; height: 150px; padding: 0.5em;text-align: center; margin: 0; } <\/style><\/span> <!-- Javascript --> <script><\/span> $(function() { $( \"#resizable-12\").resizable(); $( \"#resizable-12\").resizable('disable'); $( \"#resizable-13\").resizable(); $( \"#resizable-13\").resizable('destroy'); }); <\/script><\/span> <\/head><\/span> <body><\/span> <!-- HTML --> <div id=\"resizable-12\" class=\"ui-widget-content\"> <h3 class=\"ui-widget-header\">I'm disable!!<\/h3><\/span> <\/div><\/span><br> <div id=\"resizable-13\" class=\"ui-widget-content\"> <h3 class=\"ui-widget-header\">I'm Destroyed!!<\/h3><\/span> <\/div><\/span> <\/body><\/span> <\/html><\/span> <\/span><\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"jQuery UI resizablezh-cn","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[],"class_list":["post-3025","post","type-post","status-publish","format-standard","hentry","category-jquery-ui-jc"],"_links":{"self":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/3025"}],"collection":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/comments?post=3025"}],"version-history":[{"count":0,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/3025\/revisions"}],"wp:attachment":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/media?parent=3025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/categories?post=3025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/tags?post=3025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
|
| |