{"id":594,"date":"2021-10-17T14:48:00","date_gmt":"2021-10-17T14:48:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=594"},"modified":"2021-10-17T14:48:00","modified_gmt":"2021-10-17T14:48:00","slug":"594","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/10\/17\/594\/","title":{"rendered":"Bootstrap \u4e2d\u6587\u6587\u6863: \u4f7f\u7528 Bootstrap \u6784\u5efa\u5feb\u901f\u3001\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u7f51\u7ad9"},"content":{"rendered":"<h2>\u4f7f\u7528 Bootstrap \u6784\u5efa\u5feb\u901f\u3001\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u7f51\u7ad9  <a href=\"https:\/\/v5.bootcss.com\/docs\/getting-started\/introduction\/\">\u4e2d\u6587\u6587\u6863<\/a><\/h2>\n<p>Bootstrap \u662f\u5168\u7403\u6700\u6d41\u884c\u7684\u524d\u7aef\u5f00\u6e90\u5de5\u5177\u5305\uff0c\u5b83\u652f\u6301 Sass \u53d8\u91cf\u548c mixins\u3001\u54cd\u5e94\u5f0f\u7f51\u683c\u7cfb\u7edf\u3001\u5927\u91cf\u7684\u9884\u5efa\u7ec4\u4ef6\u548c\u5f3a\u5927\u7684 JavaScript<br \/>\u63d2\u4ef6\uff0c\u52a9\u4f60\u5feb\u901f\u8bbe\u8ba1\u548c\u81ea\u5b9a\u4e49\u54cd\u5e94\u5f0f\u3001\u79fb\u52a8\u8bbe\u5907\u4f18\u5148\u7684\u7ad9\u70b9\u3002<\/p>\n<h1><a href=\"https:\/\/v5.bootcss.com\/docs\/getting-started\/introduction\/\">\u5feb\u901f\u5165\u95e8<\/a><\/h1>\n<h2>\u5b89\u88c5 Bootstrap<\/h2>\n<p>\u901a\u8fc7 npm\u3001Composer \u6216 Meteor \u5373\u53ef\u5b89\u88c5 Bootstrap \u7684 Sass \u548c JavaScript \u6e90\u7801\u3002<\/p>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\u7684 Bootstrap \u662f\u4e0d\u5305\u542b\u6587\u6863\u6216\u5b8c\u6574\u7684\u6784\u5efa\u811a\u672c\u7684\u3002\u4f60\u8fd8\u53ef\u4ee5 [\u4f7f\u7528\u6211\u4eec\u63d0\u4f9b\u7684 npm<br \/>\u6a21\u677f\u4ed3\u5e93](<a href=\"https:\/\/github.com\/twbs\/bootstrap-npm-starter\">https:\/\/github.com\/twbs\/bootstrap-npm-starter<\/a>) \u5feb\u901f\u521b\u5efa Bootstrap \u9879\u76ee\u3002<\/p>\n<p><a href=\"https:\/\/v5.bootcss.com\/docs\/getting-started\/download\/\">\u9605\u8bfb\u5b89\u88c5\u6587\u6863<\/a><\/p>\n<pre><code>npm install bootstrap\n\ngem install bootstrap -v 5.1.1\n<\/code><\/pre>\n<h2>jsDelivr<\/h2>\n<p>\u5f53\u4f60\u53ea\u9700\u8981\u4f7f\u7528 Bootstrap \u7684\u7ecf\u8fc7\u7f16\u8bd1\u7684 CSS \u6216 JS \u6587\u4ef6\u65f6\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<br \/><a href=\"https:\/\/www.jsdelivr.com\/\">jsDelivr<\/a>\u3002<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528\u6211\u4eec\u63d0\u4f9b\u7684\u7b80\u5355\u7684 <a href=\"https:\/\/v5.bootcss.com\/docs\/getting-started\/introduction\/#starter-template\">\u5165\u95e8\u6a21\u677f<\/a> \u6216<br \/><a href=\"https:\/\/v5.bootcss.com\/docs\/examples\/\">\u6d4f\u89c8\u793a\u4f8b<\/a> \u4ee5\u5e2e\u52a9\u4f60\u5feb\u901f\u542f\u52a8\u4e00\u4e2a\u65b0\u9879\u76ee\u3002\u4f60\u8fd8\u53ef\u4ee5\u9009\u62e9\u5f15\u5165 Popper.js<br \/>\u548c\u6211\u4eec\u63d0\u4f9b\u7684<a href=\"https:\/\/v5.bootcss.com\/docs\/getting-started\/introduction\/#separate\">\u5404\u4e2a\u72ec\u7acb<\/a>\u7684 JS \u6587\u4ef6\u3002<\/p>\n<p><a href=\"https:\/\/v5.bootcss.com\/docs\/getting-started\/introduction\/\">\u63a2\u7d22\u6587\u6863<\/a><\/p>\n<pre><code>\n&lt;!-- CSS only --&gt;\n&lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.1.1\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-0XzksJoDzv4oTZJH7DKIK\/fZoGejdHrb3yIs5Qngl76cTerG8Ict9988A07jw0G5\" crossorigin=\"anonymous\"&gt;\n\n&lt;!-- JavaScript Bundle with Popper --&gt;\n&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.1.1\/dist\/js\/bootstrap.bundle.min.js\" integrity=\"sha384-\/bQdsTh\/da6pkI1MST\/rWKFNjaCP5gBSY4sEBT38Q\/9RBh9AH40zEOg7Hlq2THRZ\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\n<\/code><\/pre>\n<h2>Bootstrap \u56fe\u6807\u5e93<\/h2>\n<p>Bootstrap \u6709\u53f2\u4ee5\u6765\u7b2c\u4e00\u6b21\u62e5\u6709\u81ea\u5df1\u7684\u5f00\u6e90 SVG \u56fe\u6807\u5e93\uff0c\u65e8\u5728\u914d\u5408\u6211\u4eec\u7684\u7ec4\u4ef6\u548c\u6587\u6863\u4e00\u8d77\u4f7f\u7528\u3002<\/p>\n<p>Bootstrap \u56fe\u6807\u5e93\u65e8\u5728\u4e0e Bootstrap \u7ec4\u4ef6\u914d\u5408\u4f7f\u7528\uff0c\u4f46\u5b83\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5230\u4efb\u4f55\u9879\u76ee\u4e2d\u3002\u8fd9\u4e9b\u56fe\u6807\u662f SVG<br \/>\u683c\u5f0f\u7684\uff0c\u56e0\u6b64\u5b83\u4eec\u53ef\u4ee5\u88ab\u5feb\u901f\u8f7b\u677e\u5730\u7f29\u653e\u3001\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u4f7f\u7528\u3001\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528 CSS \u8bbe\u7f6e\u6837\u5f0f\u3002<\/p>\n<p><a href=\"https:\/\/icons.bootcss.com\/\">\u83b7\u53d6 Bootstrap \u56fe\u6807\u5e93<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/v5.bootcss.com\/docs\/5.1\/assets\/img\/bootstrap-icons.png\" alt=\"Bootstrap Icons\" title=\"Bootstrap Icons\"><\/p>\n<h2>\u5b98\u65b9\u4e3b\u9898<\/h2>\n<p><a href=\"https:\/\/themes.getbootstrap.com\/\">\u5b98\u65b9 Bootstrap \u4e3b\u9898\u5e02\u573a<\/a> \u63d0\u4f9b\u4e86\u8bb8\u591a\u9ad8\u7ea7\u4e3b\u9898\uff0c\u8ba9 Bootstrap<br \/>\u63d0\u5347\u5230\u4e86\u4e00\u4e2a\u65b0\u7684\u6c34\u5e73\u3002<\/p>\n<p>\u8fd9\u4e9b\u4e3b\u9898\u662f\u57fa\u4e8e Bootstrap \u6784\u5efa\u7684\uff0c\u5e76\u4f5c\u4e3a\u4ed6\u4eec\u81ea\u5df1\u7684\u6269\u5c55\u6846\u67b6\uff0c\u5305\u542b\u4e86\u4e30\u5bcc\u7684\u65b0\u7ec4\u4ef6\u548c\u63d2\u4ef6\u3001\u6587\u6863\u4ee5\u53ca\u6784\u5efa\u5de5\u5177\u3002<\/p>\n<p><a href=\"https:\/\/themes.getbootstrap.com\/\">\u6d4f\u89c8\u4e3b\u9898<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 Bootstrap \u6784\u5efa\u5feb\u901f\u3001\u54cd\u5e94\u5f0f\u5e03\u5c40\u7684\u7f51\u7ad9 \u4e2d\u6587\u6587\u6863 Bootstrap \u662f\u5168\u7403\u6700\u6d41\u884c\u7684\u524d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[57,30],"class_list":["post-594","post","type-post","status-publish","format-standard","hentry","category-learn","tag-bootstrap","tag-web"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=594"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/594\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}