{"id":20579,"date":"2024-11-19T13:56:49","date_gmt":"2024-11-19T05:56:49","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20579\/"},"modified":"2024-11-19T13:56:49","modified_gmt":"2024-11-19T05:56:49","slug":"sublime-test%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8ccss%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20579\/","title":{"rendered":"sublime test\u600e\u4e48\u8fd0\u884ccss\u6587\u4ef6"},"content":{"rendered":"<blockquote><p>\n  \u5728 sublime text \u4e2d\u8fd0\u884c css \u6587\u4ef6\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528 webkit inspector \u63d2\u4ef6\uff0c\u901a\u8fc7 command + option + i (mac) \u6216 ctrl + alt + i (windows\/linux) \u6253\u5f00 elements \u9009\u9879\u5361\u67e5\u770b html \u548c css\u3002\u4f7f\u7528 livereload \u63d2\u4ef6\uff0c\u901a\u8fc7 command + option + l (mac) \u6216 ctrl + alt + l (windows\/linux) \u542f\u52a8 livereload\uff0c\u81ea\u52a8\u76d1\u89c6\u6587\u4ef6\u66f4\u6539\u5e76\u5237\u65b0\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040306362030083.jpg\" class=\"aligncenter\" title=\"sublime test\u600e\u4e48\u8fd0\u884ccss\u6587\u4ef6\u63d2\u56fe\" alt=\"sublime test\u600e\u4e48\u8fd0\u884ccss\u6587\u4ef6\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Sublime Text \u4e2d\u8fd0\u884c CSS \u6587\u4ef6<\/strong><\/p>\n<p>\u5728 Sublime Text \u4e2d\u8fd0\u884c CSS \u6587\u4ef6\u9700\u8981\u501f\u52a9\u4e00\u4e9b\u5916\u90e8\u5de5\u5177\uff0c\u4f8b\u5982\uff1a<\/p>\n<p><strong>1. WebKit Inspector<\/strong><\/p>\n<ul>\n<li>\u5b89\u88c5 WebKit Inspector \u63d2\u4ef6\u3002<\/li>\n<li>\u6253\u5f00 CSS \u6587\u4ef6\uff0c\u7136\u540e\u6309 Command + Option + I (Mac) \u6216 Ctrl + Alt + I (Windows\/Linux) \u6253\u5f00 WebKit Inspector\u3002<\/li>\n<li>\u9009\u62e9 &#8220;Elements&#8221; \u9009\u9879\u5361\u4ee5\u67e5\u770b HTML \u548c CSS\u3002<\/li>\n<\/ul>\n<p><strong>2. LiveReload<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5b89\u88c5 LiveReload \u63d2\u4ef6\u3002<\/li>\n<li>\u6253\u5f00 CSS \u6587\u4ef6\u540e\uff0c\u6309 Command + Option + L (Mac) \u6216 Ctrl + Alt + L (Windows\/Linux) \u542f\u52a8 LiveReload\u3002<\/li>\n<li>LiveReload \u4f1a\u81ea\u52a8\u76d1\u89c6\u6587\u4ef6\u66f4\u6539\u5e76\u5237\u65b0\u6d4f\u89c8\u5668\u7a97\u53e3\u3002<\/li>\n<\/ul>\n<p><strong>3. BrowserSync<\/strong><\/p>\n<ul>\n<li>\u5b89\u88c5 BrowserSync \u63d2\u4ef6\u3002<\/li>\n<li>\u6253\u5f00 CSS \u6587\u4ef6\u540e\uff0c\u6309 Command + Option + B (Mac) \u6216 Ctrl + Alt + B (Windows\/Linux) \u542f\u52a8 BrowserSync\u3002<\/li>\n<li>BrowserSync \u4f1a\u81ea\u52a8\u6253\u5f00\u4e00\u4e2a\u6d4f\u89c8\u5668\u7a97\u53e3\u5e76\u76d1\u89c6\u6587\u4ef6\u66f4\u6539\u3002<\/li>\n<\/ul>\n<p><strong>4. \u5b9e\u65f6\u9884\u89c8\u5de5\u5177<\/strong><\/p>\n<p>\u4e00\u4e9b Sublime Text \u4e3b\u9898\u63d0\u4f9b\u4e86\u5b9e\u65f6\u9884\u89c8\u529f\u80fd\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li> <strong>Emmet<\/strong>\uff1a\u5728 CSS \u6587\u4ef6\u4e2d\u6309 Tab \u952e\u53ef\u4ee5\u751f\u6210 HTML \u9884\u89c8\u3002<\/li>\n<li> <strong>Stylus<\/strong>\uff1a\u5b89\u88c5 Stylus \u63d2\u4ef6\u5e76\u5728 CSS \u6587\u4ef6\u4e2d\u4f7f\u7528.styl \u6269\u5c55\u540d\u53ef\u4ee5\u83b7\u5f97\u5b9e\u65f6\u9884\u89c8\u3002<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<ul>\n<li>\u5bf9\u4e8e\u5b9e\u65f6\u9884\u89c8\u5de5\u5177\uff0c\u9700\u8981\u786e\u4fdd CSS \u6587\u4ef6\u548c HTML \u6587\u4ef6\u4f4d\u4e8e\u540c\u4e00\u76ee\u5f55\u4e2d\u3002<\/li>\n<li>\u67d0\u4e9b\u65b9\u6cd5\u9700\u8981\u989d\u5916\u7684\u8bbe\u7f6e\u548c\u914d\u7f6e\uff0c\u8bf7\u5728\u63d2\u4ef6\u6587\u6863\u4e2d\u67e5\u627e\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f test\u600e\u4e48\u8fd0\u884ccss\u6587\u4ef6\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 sublime text \u4e2d\u8fd0\u884c css \u6587\u4ef6\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528 webkit inspector \u63d2\u4ef6\uff0c\u901a\u8fc7 command + option + i (mac) \u6216 ctrl + alt + i (windows\/linux) \u6253\u5f00 elements \u9009\u9879\u5361\u67e5\u770b html \u548c css\u3002\u4f7f\u7528 livereload \u63d2\u4ef6\uff0c\u901a\u8fc7 command + option + l (mac) \u6216 ctrl + alt + l (windows\/linux) \u542f\u52a8 livereload\uff0c\u81ea\u52a8\u76d1\u89c6\u6587\u4ef6\u66f4\u6539\u5e76\u5237\u65b0 \u5982\u4f55\u5728 Sublime Text \u4e2d\u8fd0\u884c CSS \u6587\u4ef6 \u5728 Sublime Text \u4e2d\u8fd0\u884c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-20579","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=20579"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20579\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}