{"id":43,"date":"2018-02-11T23:11:40","date_gmt":"2018-02-11T23:11:40","guid":{"rendered":"http:\/\/www.uihacker.com\/?p=43"},"modified":"2018-02-11T23:11:40","modified_gmt":"2018-02-11T23:11:40","slug":"sketch-make-flexible-controller","status":"publish","type":"post","link":"https:\/\/uidora.com\/?p=43","title":{"rendered":"\u7528Sketch\u5236\u4f5c\u5f39\u6027\u53ef\u4f38\u7f29\u7684\u97f3\u9891\u64ad\u653e\u6761"},"content":{"rendered":"<figure class=\"top_img_none\"><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2018\/02\/20180211-uihacker-sketch-make-flexible-controller-00.jpg\"\/><\/figure>\n<p>20180211-\u7528Sketch\u5236\u4f5c\u5f39\u6027\u53ef\u4f38\u7f29\u7684\u97f3\u9891\u64ad\u653e\u6761<\/p>\n<h2>\u770b\u5b8c\u672c\u6587\u4f60\u5c06\u89e3\u51b3\u4ee5\u4e0b\u95ee\u9898<\/h2>\n<ul>\n<li>\u5982\u4f55\u53ea\u7528\u4e00\u4e2asymbol\u5b9e\u73b0\u5bbd\u5ea6\u4e0d\u4e00\u6837\u7684\u97f3\u4e50\u64ad\u653e\u7ec4\u4ef6<\/li>\n<li>Sketch\u7684Resizing\u529f\u80fd\u8be6\u89e3<\/li>\n<\/ul>\n<h2>\u95ee\u9898\u573a\u666f\u518d\u73b0<\/h2>\n<p>\u4e4b\u524d\u6709\u4e2a\u9879\u76ee\uff0c\u9700\u8981\u7528\u5230\u97f3\u9891\u64ad\u653e\u6761\uff0c400px\uff0c\u957f\u8fd9\u4e2a\u6837\u5b50<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2018\/02\/20180211-uihacker-sketch-make-flexible-controller-1.jpg\"\/><\/figure>\n<p>\u5f88\u7b80\u5355\uff0c\u4e09\u4e0b\u4e24\u4e0b\u641e\u5b9a\uff0c\u540c\u65f6\u517b\u6210\u4e60\u60ef\uff0c\u8f6c\u5316\u4e3asymbol\uff0c\u4e07\u4e00\u5176\u4ed6\u9875\u9762\u4e5f\u7528\u5230\u5462\uff1f<\/p>\n<p>\u4f46\u5b9e\u9645\u5de5\u4f5c\u4e2d\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u8fd9\u6837\u7684\u9700\u6c42\uff0c\u5728\u53e6\u4e00\u4e2a\u9875\u9762\uff0c\u8fd9\u4e2a\u64ad\u653e\u6761\u9700\u8981340px\uff0c\u800c\u4e14\u6709\u4e9b\u9875\u9762\u7684\u8fdb\u5ea6\u6761\u8981\u968f\u7740\u9875\u9762\u5bbd\u5ea6\u6539\u53d8\uff0c\u5b9e\u73b0\u5bbd\u5ea6\u54cd\u5e94\u8be5\u600e\u4e48\u529e\u5462\uff1f<\/p>\n<p>\u8bd5\u7740\u62c9\u4f38\u64ad\u653e\u6761\uff0c\u5c31\u53d8\u6210\u4e86\u8fd9\u6837<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2018\/02\/20180211-uihacker-sketch-make-flexible-controller-2.gif\"\/><\/figure>\n<p>\u96be\u9053\u8fd8\u9700\u8981\u518d\u5236\u4f5c\u4e00\u4e2a340px\u7684\u5417\uff1f\u660e\u660e\u8fd9\u4e24\u4e2a\u7ec4\u4ef6\u4e00\u6a21\u4e00\u6837\u3002<\/p>\n<p>\u5728html\u4e2d\uff0c\u8fd9\u4e2a\u95ee\u9898\u5f88\u5bb9\u6613\u89e3\u51b3\uff0c\u5bf9\u4e8e\u76f8\u540c\u7ed3\u6784\u7684\u7ec4\u4ef6\uff0c\u5bbd\u5ea6\u5e76\u4e0d\u5f71\u54cd\u6837\u5f0f\u5c55\u73b0\uff0c\u7528\u5b9a\u4f4d\u6d6e\u52a8\u5373\u53ef\u89e3\u51b3\u3002<\/p>\n<p>\u90a3\u4e48Sketch\u80fd\u7528\u4e00\u4e2asymbol\u5b9e\u73b0\u4e0d\u540c\u5bbd\u5ea6\u5417\uff1f<\/p>\n<p>\u53ef\u4ee5\uff0c\u7b54\u6848\u5c31\u662fResizing\u3002<\/p>\n<h2>Sketch\u4e2d\u7684Resizing\u529f\u80fd<\/h2>\n<p>\u8fd9\u4e2aResizing\uff0c\u6c49\u5316\u63d2\u4ef6\u628a\u5b83\u7ffb\u8bd1\u6210\u667a\u80fd\u7f29\u653e\u3002<\/p>\n<p>\u6709\u4e2a\u5c0f\u63d2\u66f2\uff0c\u524d\u6bb5\u65f6\u95f4\u516c\u53f8\u6709UI\u62db\u8058\u9700\u6c42\uff0c\u6211\u9762\u8bd5\u4e86\u597d\u51e0\u4f4d\u8bbe\u8ba1\u5e08\uff0c\u95ee\u5230Resizing\u597d\u591a\u90fd\u4e0d\u77e5\u9053\u3002\u8bf4\u5230\u4e2d\u6587\u667a\u80fd\u7f29\u653e\uff0c\u4f1a\u548cSketch\u7684\u53e6\u4e00\u4e2a\u529f\u80fdScale\u6df7\u6dc6\uff0c\u5927\u5bb6\u9700\u8981\u6ce8\u610f\u4e0b\uff0c\u8fd9\u4e24\u4e2a\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u6982\u5ff5\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2018\/02\/20180211-uihacker-sketch-make-flexible-controller-3.jpg\"\/><\/figure>\n<p>\u5de6\u8fb9\u4ee3\u8868\u4f4d\u7f6e\u7684\u4e0a\u4e0b\u5de6\u53f3\uff0c\u53ef\u4ee5\u7ec4\u5408\u4f7f\u7528\uff0c\u70b9\u51fb\u5bf9\u5e94\u7684\u5c31\u662f\u56fa\u5b9a\u3002<\/p>\n<p>\u53f3\u8fb9\u4ee3\u8868\u5bbd\u548c\u9ad8\u7684\u62c9\u4f38\u4e0e\u5426\uff0c\u70b9\u51fb\u5bf9\u5e94\u7684\u5c31\u662f\u7981\u6b62\u62c9\u4f38\u3002<\/p>\n<p>\u8fd9\u6837\u5c31\u4f1a\u7ec4\u5408\u51fa\u4e0d\u540c\u7684\u4f4d\u7f6e\u548c\u62c9\u4f38\u6548\u679c\uff0c\u5982\u4e0b\u56fe<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2018\/02\/20180211-uihacker-sketch-make-flexible-controller-4.jpg\"\/><\/figure>\n<h2>\u5236\u4f5c\u53ef\u4f38\u7f29\u97f3\u4e50\u64ad\u653e\u6761<\/h2>\n<p>\u5728\u89e3\u4e86Resizing\u7684\u7279\u70b9\u540e\uff0c\u5206\u6790\u4e00\u4e0b\u6211\u4eec\u7684\u9700\u6c42<\/p>\n<p>1\uff1a\u5de6\u8fb9\u7684\u64ad\u653e\u6309\u94ae\u3001\u65f6\u95f4\u3001\u84dd\u8272\u6761\u548c\u6ed1\u52a8\u70b9\u9700\u8981\u56fa\u5b9a\u5728\u5de6\u4fa7<\/p>\n<p>2\uff1a\u53f3\u8fb9\u7684\u603b\u65f6\u95f4\u9700\u8981\u56fa\u5b9a\u5728\u53f3\u4fa7<\/p>\n<p>3\uff1a\u4e2d\u95f4\u7684\u7070\u8272\u8fdb\u5ea6\u6761\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u5f39\u6027\u4f38\u7f29<\/p>\n<p>\u7ed3\u5408Resizing\u7684\u7279\u6027\uff0c\u5f39\u6027\u64ad\u653e\u6761\u5c31\u80fd\u5236\u4f5c\u51fa\u6765\u4e86\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2018\/02\/20180211-uihacker-sketch-make-flexible-controller-5.jpg\"\/><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2018\/02\/20180211-uihacker-sketch-make-flexible-controller-6.gif\"\/><\/figure>\n<p>\u4e0a\u56fe\u7ea2\u6846\u4e2d\u7684\u5143\u7d20\u7f16\u6210\u4e00\u4e2a\u7ec4\uff0c\u7ec4\u4e5f\u53ef\u4ee5\u4f7f\u7528Resizing\uff0c\u5e76\u4e14\u7ec4\u91cc\u9762\u7684\u5143\u7d20\u4e5f\u9002\u7528\u5bf9\u5e94\u5c5e\u6027\u3002<\/p>\n<h2>\u7ed3\u8bed<\/h2>\n<p>Resizing\u7684\u529f\u80fd\u7c7b\u4f3c\u4e8ecss\u4e2d\u7684float\u5c5e\u6027\uff0c\u8ba9Sketch\u8bbe\u8ba1\u754c\u9762\u53d8\u5f97\u66f4\u52a0\u81ea\u7531\u5316\u3002\u6211\u4eec\u53ef\u4ee5\u628a\u7ed3\u6784\u76f8\u540c\u7684\u7ec4\u4ef6\u7edf\u4e00\u5f52\u7eb3\u4e3a\u4e00\u4e2asymbol\uff0c\u5927\u5927\u51cf\u5c11\u7ec4\u4ef6\u7ef4\u62a4\u7684\u6210\u672c\uff0c\u4e5f\u63d0\u9ad8\u4e86\u8bbe\u8ba1\u6548\u7387\u3002<\/p>\n<p>\u968f\u7740Sketch\u4e0d\u65ad\u66f4\u65b0\uff0cUI\u8bbe\u8ba1\u7406\u5ff5\u548ccss\u7406\u5ff5\u4f1a\u8d8a\u6765\u8d8a\u63a5\u8fd1\uff0c\u6240\u4ee5\u5404\u4f4d\u8bbe\u8ba1\u5e08\u6709\u7a7a\u8fd8\u662f\u591a\u5c11\u4e86\u89e3\u4e00\u4e9b\u524d\u7aef\u77e5\u8bc6\uff0c\u6269\u5c55\u81ea\u5df1\u7684\u6280\u80fd\u6811\u3002<\/p>\n<p>\u6700\u540e\u9644\u4e0a\u64ad\u653e\u6761\u7684\u6e90\u6587\u4ef6<\/p>\n<p>\u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1NXvfmN5YsOCSRAOe-PT4wg \u63d0\u53d6\u7801: rpsq <\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>20180211-\u7528Sketch\u5236\u4f5c\u5f39\u6027\u53ef\u4f38\u7f29\u7684\u97f3\u9891\u64ad\u653e\u6761 \u770b\u5b8c\u672c\u6587\u4f60\u5c06\u89e3\u51b3\u4ee5\u4e0b\u95ee\u9898 \u5982\u4f55\u53ea\u7528\u4e00\u4e2asymbol [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[3],"tags":[9,14],"class_list":["post-43","post","type-post","status-publish","format-gallery","hentry","category-experience","tag-sketch","tag-efficient","post_format-post-format-gallery"],"_links":{"self":[{"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":0,"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"wp:attachment":[{"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}