{"id":3132,"date":"2013-03-27T19:08:32","date_gmt":"2013-03-27T11:08:32","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=3132"},"modified":"2018-01-02T02:45:08","modified_gmt":"2018-01-01T18:45:08","slug":"funny-textarea-resize-ux","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2013\/03\/funny-textarea-resize-ux\/","title":{"rendered":"\u6709\u610f\u601d\uff1atextarea resize\u5c5e\u6027\u4e0b\u7eafCSS\u4ea4\u4e92\u6548\u679c"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=3132\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=3132<\/a><\/p>\n<h3>\u4e00\u3001\u4f17\u6240\u5468\u77e5\u7684<\/h3>\n<p>\u4f17\u6240\u5468\u77e5\uff0c\u6587\u672c\u57df(<code>textarea<\/code>)\u5728FireFox\u6216Chrome\u6d4f\u89c8\u5668\u4e0b\uff0c\u53f3\u4e0b\u89d2\u6709\u4e2a\u53ef\u4ee5\u62d6\u62fd\u7684\u6807\u5fd7\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201303\/2013-03-27_182915.png\" width=\"208\" height=\"116\" alt=\"textarea\u62d6\u62fd\u7684\u5c0f\u6807\u793a \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" class=\"alignnone\" \/><\/p>\n<p>\u6709\u4eba\u4fdd\u7559\uff0c\u6709\u4eba\u5acc\u788d\u4e8b\uff0c\u76f4\u63a5<code>resize:none;<\/code>\u6389\uff0c\u4f46\u662f\uff0c\u4f30\u8ba1\u6ca1\u4eba\u5229\u7528\u6574\u4e2a\u513f\u505a\u4ea4\u4e92\u6548\u679c\u3002<\/p>\n<h3>\u4e8c\u3001\u7eafCSS\u7684\u4ea4\u4e92\u5c55\u793a<\/h3>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201303\/textarea-resize-ux.html\" target=\"_blank\" class=\"a_link\">textarea resize\u4e0b\u7684\u7eafCSS\u4ea4\u4e92demo<\/a><\/p>\n<p>\u4f8b\u5982\uff0c\u62d6\u52a8\uff08\u5f80\u53f3\u2192\uff09\u4e0b\u56fe\u5708\u4e2d\u7684\u56fe\u6807\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-02_024320.png\" width=\"138\" height=\"151\" alt=\"\u70b9\u51fb\u64cd\u4f5c\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p>\u4e00\u4e2a\u534a\u900f\u660e\u906e\u7f69\u5c42\u968f\u7740\u62d6\u52a8\u628a\u7167\u7247\u7ed9\u8986\u76d6\u4e86\uff0c\u8fbe\u5230\u4e86\u534a\u906e\u9762\u7684\u4ea4\u4e92\u6548\u679c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-02_024417.png\" width=\"250\" height=\"435\" alt=\"\u62d6\u52a8\u4e2d\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p>\u6548\u679c\u6ca1\u4ec0\u4e48\uff0c\u4f46\u662f\u5374\u5b8c\u5168CSS\u5b9e\u73b0\u7684\uff0c\u5c31\u6709\u610f\u601d\u4e86\u3002<\/p>\n<h3>\u4e09\u3001\u5b9e\u73b0\u539f\u7406<\/h3>\n<p>\u6211\u4eec\u5e73\u65f6\u62d6\u52a8\u6587\u672c\u57df\u7684\u65f6\u5019\uff0c\u5f80\u53f3\u62d6\u5219\u6587\u672c\u57df\u5bbd\u5ea6\u5f80\u53f3\u4fa7\u6269\u5c55\u3002\u4f46\u662f\uff0c\u5982\u679c\u6587\u672c\u57df\u53f3\u4fa7\u5b9a\u4f4d\uff08\u6d6e\u52a8\u6216\u7edd\u5bf9\u5b9a\u4f4d\uff09\uff0c\u5219\u53f3\u4fa7\u4e0d\u52a8\uff0c\u5bbd\u5ea6\u5f80\u5de6\u4fa7\u6269\u5c55\u3002\u4e0b\u56fe\u6f14\u793a\u4e3a\u53f3100\u50cf\u7d20\u7edd\u5bf9\u5b9a\u4f4d\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201303\/2013-03-27_184934.png\" width=\"238\" height=\"191\" alt=\"\u9ed8\u8ba4\u4f4d\u7f6e\" class=\"alignnone\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201303\/2013-03-27_184952.png\" width=\"343\" height=\"234\" alt=\"\u62c9\u4f38\u540e\" class=\"alignnone\" \/><\/p>\n<p>\u6211\u4eec\u8fd8\u77e5\u9053\uff0c<code>textarea<\/code> <code>resize<\/code>\u7684\u65f6\u5019\u5bbd\u5ea6\u53d8\u5316\u4f1a\u8ba9\u5177\u6709\u201c\u5305\u88f9\u6027\u201d\u7684\u7236\u5143\u7d20\u5bbd\u5ea6\u8ddf\u7740\u4e00\u8d77\u53d8\u5316\uff0c\u6240\u4ee5\uff0c\u5982\u679c\u6211\u4eec\u628a<code>textarea<\/code>\u653e\u5728\u5177\u6709\u534a\u900f\u660e\u80cc\u666f\u8272\u7684\u5c42\u4e2d\uff0c\u90a3\u62c9\u4f38\u7684\u65f6\u5019\uff0c\u8fd9\u4e2a\u534a\u900f\u660e\u5c42\u4e0d\u5c31\u53ef\u4ee5\u62c9\u62c9\u4f38\u4f38\uff0c\u6709\u4e86\u4ea4\u4e92\u6548\u679c\u5566\uff01\u8fd9\u5c31\u662fdemo\u4e2d\u534a\u900f\u660e\u5c42\u8986\u76d6\u6765\u8986\u76d6\u53bb\u7684\u539f\u7406\u3002<\/p>\n<p>\u8bf4\u5f97\u518d\u591a\u4e5f\u4e0d\u5bb9\u6613\u660e\u767d\uff0cdemo\u4e2d\u4e00\u4e9b\u969c\u773c\u7684\u5c5e\u6027\uff08<code>overflow:hidden;<\/code>\u3001<code>opacity:0;<\/code>\uff09\u53bb\u6389\uff0c\u4f60\u5c31\u77e5\u9053\u5927\u6982\u4e86\u3002\u4e0b\u56fe\u4e3a\u53bb\u6389<code>overflow:hidden;<\/code>\u4ee5\u53ca\u6587\u672c\u57df<code>opacity<\/code>\u8bbe\u4e3a<code>0.6<\/code>\u540e\u7684\u6548\u679c\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201303\/2013-03-27_190104.png\" width=\"360\" height=\"256\" alt=\"\u4e00\u4e9b\u969c\u773c\u7684CSS\u5c5e\u6027\u53bb\u6389\u540e\u7684\u6548\u679c \u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b\" class=\"alignnone\" \/><\/p>\n<h3>\u56db\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u7ecf\u6d4b\u8bd5\uff0cOpera\/FireFox\/Chrome\u6d4f\u89c8\u5668\u652f\u6301\uff0cIE10\u4ee5\u53ca\u4e0b\u9762\u7684\u55bd\u55bd\u4eec\u90fd\u4e0d\u652f\u6301\u3002\u663e\u7136\uff0c\u517c\u5bb9\u6027\u662f\u786c\u4f24\u3002\u56e0\u6b64\uff0c\u9664\u4e86\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u6b64\u5b9e\u73b0\u6ca1\u6709\u591a\u5c11\u5b9e\u7528\u4ef7\u503c\u3002\u4ec5\u4f9b\u5927\u5bb6\u5a31\u4e50\uff0c\u4ec5\u4f9b\u5927\u5bb6\u53c2\u8003\u3002\u5f53\u7136\uff0c\u60a8\u53ef\u4ee5\u53d1\u6325\u4f60\u667a\u6167\u5b9e\u73b0\u5176\u4ed6\u4e00\u4e9b\u4ea4\u4e92\u3002<\/p>\n<p>\u5509\uff0c\u5fe7\u4f24\u7684\u4e09\u6708\uff0c\u5c31\u8fd9\u4e9b\uff0c\u611f\u8c22\u9605\u8bfb\uff01<\/p>\n<p>\u53c2\u8003\u6587\u7ae0\uff1a<a href=\"http:\/\/css-tricks.com\/tricky-textarea-pulltab\/\">Tricky Textarea Pulltab<\/a><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u6765\u81ea<a href=\"http:\/\/www.zhangxinxu.com\/\">\u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<\/a>[<a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a>]<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=3132\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=3132<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u7684\u662f\u4f7f\u7528\u7eafCSS\uff0c\u5229\u7528textarea resize\u5c5e\u6027\u5b9e\u73b0\u7684\u4e00\u4e2a\u4ea4\u4e92\u6548\u679c\uff0c\u7531\u4e8e\u517c\u5bb9\u6027\u8fd9\u4e2a\u786c\u4f24\uff0c\u4ec5\u4f9b\u5927\u5bb6\u5a31\u4e50\uff0c\u4ec5\u4f9b\u5927\u5bb6\u53c2\u8003\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[774,515,49,347,409],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/3132"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3132"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/3132\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}