{"id":2447,"date":"2018-01-25T11:30:54","date_gmt":"2018-01-25T03:30:54","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2447"},"modified":"2018-01-25T11:30:54","modified_gmt":"2018-01-25T03:30:54","slug":"css-gridish-%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2447","title":{"rendered":"css-gridish \u6559\u7a0b"},"content":{"rendered":"<p>\n\tcss-gridish \u662f ibm \u63a8\u51fa\u7684\u4e00\u4e2a\u5f00\u6e90\u7684\u7f51\u683c\u6846\u67b6\u3002\u4e5f\u662f\u6700\u8fd1\u6bd4\u8f83\u6d41\u884c\u7684\u4e00\u4e2a\u524d\u7aef\u6846\u67b6\u3002\u672c\u6587\u4ecb\u7ecd\u5b83\u7684\u4e00\u4e9b\u7279\u70b9\u548c\u7528\u6cd5\u3002\n<\/p>\n<p>\n\tcss-gridish \u80fd\u5236\u4f5c\u51fa\u548c<font><font><a href=\"https:\/\/ibm.github.io\/css-gridish\/examples\/bootstrap\/index.html\" rel=\"nofollow\">Bootstrap<\/a>\uff0c<\/font><\/font>&nbsp;<a href=\"https:\/\/ibm.github.io\/css-gridish\/examples\/carbon\/index.html\" rel=\"nofollow\"><font><font>Carbon Design System<\/font><\/font><\/a><font><font>\uff0c<\/font><a href=\"https:\/\/ibm.github.io\/css-gridish\/examples\/material\/index.html\" rel=\"nofollow\"><font>Material Design<\/font><\/a><font>\u7b49\u4e00\u6837\u7684\u7f51\u683c\u793a\u4f8b\u3002\u5e76\u4e14\u8fd8\u6709\u5f88\u591a\u5b83\u4eec\u6240\u4e0d\u5177\u5907\u7684\u4f18\u70b9\uff0c\u80fd\u5b9e\u73b0\u66f4\u591a\u590d\u6742\u7684\u5e03\u5c40\u3002<\/font><\/font>\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"css-gridish\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20180125111556.png\" style=\"width: 750px;height: 209px\" \/>\n<\/p>\n<p>\n\t<font><font>CSS Gridish\u63d0\u4f9b\u4ea7\u54c1\u7f51\u683c\u7684\u8bbe\u8ba1\u89c4\u683c\uff0c\u5e76\u4e3a\u60a8\u7684\u56e2\u961f\u5efa\u7acb\u591a\u4e2a\u8d44\u6e90\u4ee5\u4f9b\u4f7f\u7528\uff1a<\/font><\/font>\n<\/p>\n<ul>\n<li>\n\t\t<font><font>\u8349\u56fe\u6587\u4ef6\u4e0e\u8bbe\u8ba1\u5e08\u7684\u753b\u677f\u548c\u7f51\u683c\/\u5e03\u5c40\u8bbe\u7f6e<\/font><\/font>\n\t<\/li>\n<li>\n\t\t<font><font>\u4f7f\u7528CSS Grid\u7684CSS \/ SCSS\u4ee3\u7801\uff0c\u4e3a\u5f00\u53d1\u4eba\u5458\u63d0\u4f9bCSS Flexbox\u56de\u9000<\/font><\/font>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/chrome.google.com\/webstore\/detail\/css-gridish\/ebhcneoilkamaddhlphlehojpcooobgc\" rel=\"nofollow\"><font><font>Google Chrome\u6269\u5c55\u7a0b\u5e8f\uff0c<\/font><\/font><\/a><font><font>\u8ba9\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u68c0\u67e5\u7f51\u9875\u7684\u5bf9\u9f50\u65b9\u5f0f<\/font><\/font>\n\t<\/li>\n<\/ul>\n<p>\n\t<font><font>\u4e8b\u5b9e\u662f\uff0c\u8bb8\u591a\u4f01\u4e1a\u9879\u76ee\u4e0d\u80fd\u653e\u5f03\u5bf9\u4e0d<\/font><\/font><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/grid#Browser_compatibility\" rel=\"nofollow\"><font><font>\u652f\u6301CSS\u7f51\u683c\u5e03\u5c40\u7684<\/font><\/font><\/a><font><font>\u6d4f\u89c8\u5668\u7684<\/font><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/grid#Browser_compatibility\" rel=\"nofollow\"><font>\u652f\u6301<\/font><\/a><font>\u3002<\/font><font>\u8fd9\u4e2a\u5de5\u5177\u5c06\u4f7f\u7528\u60a8\u7684\u7f51\u683c\u7684\u8bbe\u8ba1\u89c4\u8303\uff0c\u5e76\u6784\u5efa\u4e00\u4e2a<\/font><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Flexible_Box_Layout#Browser_compatibility\" rel=\"nofollow\"><font>\u7cbe\u7b80\u7684<\/font><\/a><font>&nbsp;CSS\u7f51\u683c\u5e03\u5c40\u5b9e\u73b0\uff0c\u5e76\u56de<\/font><\/font><font><font><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Flexible_Box_Layout#Browser_compatibility\" rel=\"nofollow\">\u9000\u5230CSS Flexbox\u652f\u6301<\/a>\u3002<\/font><\/font>\n<\/p>\n<h2>\n\t\u4f7f\u7528\u6559\u7a0b<br \/>\n<\/h2>\n<p>\n\tcss-gridish \u4f9d\u8d56&nbsp;&nbsp;<a href=\"https:\/\/nodejs.org\/en\/\" rel=\"nofollow\">Node v8.2.0<\/a>&nbsp;\u6216\u8005\u66f4\u9ad8\u7248\u672c\u3002\n<\/p>\n<p>\n\t\u9996\u5148\uff0c\u5728\u4f60\u7684\u9879\u76ee\u6839\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2acss-gridish.json\u6587\u4ef6\u3002\n<\/p>\n<p>\n\t\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u8fdb\u884c\u9879\u76ee\u6784\u5efa\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\nnpx css-gridish<\/pre>\n<p>\n\t\u5982\u679c\u8981\u5c06\u7f51\u683c\u6784\u5efa\u6dfb\u52a0\u5230\u9879\u76ee\u7684\u6784\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a\n<\/p>\n<pre class=\"brush:bash;\">\r\nnpm install css-gridish<\/pre>\n<p>\n\t\u7136\u540e\uff0c\u52a0\u5165scripts: {build: &quot;css-gridish&quot;}\u4f60\u7684package.json\u3002\n<\/p>\n<p>\n\t\u8fd0\u884c\u547d\u4ee4npm run build\u3002\n<\/p>\n<p>\n\t\u4f60\u7684CSS\u548cREADME.md\u7c7b\u6587\u6863\u5c06\u88ab\u5185\u7f6e\u5230.\/css-gridish\/\u3002\n<\/p>\n<p>\n\t\u914d\u7f6e\u6587\u4ef6\u662f\u60a8\u7684\u6240\u6709\u8bbe\u8ba1\u7cfb\u7edf\u89c4\u8303\u7684\u6240\u5728\u3002\u7f16\u8f91\u60a8\u7684css-gridish.json\u6240\u6709\u751f\u6210\u7684\u7f51\u683c\u5185\u5bb9\u5339\u914d\u60a8\u7684\u8bbe\u8ba1\u7cfb\u7edf\uff1a\n<\/p>\n<pre class=\"brush:plain;\">\r\n{\r\n  &quot;prefix&quot;: &quot;gridish&quot;, \r\n  &quot;breakpoints&quot;: {\r\n    &quot;sm&quot;: {\r\n      &quot;breakpoint&quot;: 20, \r\n      &quot;columns&quot;: 4, \/\/ www.xttblog.com\r\n      &quot;gutter&quot;: &quot;2rem&quot;, \/\/  www.xttblog.com\r\n      &quot;margin&quot;: &quot;3vw&quot; \/\/ www.xttblog.com\r\n    },\r\n    ...\r\n    &quot;max&quot;: {\r\n      &quot;breakpoint&quot;: 100,\r\n      &quot;columns&quot;: 12,\r\n      &quot;gutter&quot;: &quot;4rem&quot;,\r\n      &quot;margin&quot;: &quot;5vw&quot;\r\n    }\r\n  },\r\n  &quot;extraArtboards&quot;: {\r\n    &quot;xlg&quot;: 100 \r\n  },\r\n  &quot;rem&quot;: 16, \/\/  www.xttblog.com\r\n  &quot;rowHeight&quot;: 0.5, \r\n  &quot;rows&quot;: 30, \r\n  &quot;paths&quot;: {\r\n    &quot;route&quot;: &quot;css-gridish&quot;,\r\n    &quot;intro&quot;: &quot;intro.md&quot; \r\n  }\r\n}<\/pre>\n<p>\n\t\u4e0a\u9762\u53ea\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u914d\u7f6e\u3002\u5982\u679c\u4f60\u60f3\u66f4\u6df1\u5165\u7684\u5b66\u4e60\uff0c\u4f60\u53c2\u8003\u5b98\u65b9\u63d0\u4f9b\u7684\u6587\u6863\u3002<a href=\"https:\/\/github.com\/IBM\/css-gridish\/tree\/master\/examples\" name=\"css-gridish\" target=\"_blank\" title=\"css-gridish\">https:\/\/github.com\/IBM\/css-gridish\/tree\/master\/examples<\/a><\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2447\">css-gridish \u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>css-gridish \u662f ibm \u63a8\u51fa\u7684\u4e00\u4e2a\u5f00\u6e90\u7684\u7f51\u683c\u6846\u67b6\u3002\u4e5f\u662f\u6700\u8fd1\u6bd4\u8f83\u6d41\u884c\u7684\u4e00\u4e2a\u524d\u7aef\u6846\u67b6\u3002\u672c\u6587\u4ecb\u7ecd\u5b83\u7684\u4e00\u4e9b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[627,1549,814,1550,1415],"class_list":["post-2447","post","type-post","status-publish","format-standard","hentry","category-html5","tag-bootstrap","tag-bulma","tag-css3","tag-flexbox","tag-node-js"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2447"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2447\/revisions"}],"predecessor-version":[{"id":2448,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2447\/revisions\/2448"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}