{"id":8244,"date":"2019-12-10T21:50:43","date_gmt":"2019-12-10T12:50:43","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=8244"},"modified":"2023-05-27T18:28:16","modified_gmt":"2023-05-27T09:28:16","slug":"%e3%80%90bootstrap%e3%80%91%e6%a6%82%e8%a6%81","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=8244","title":{"rendered":"\u3010BootStrap\u3011\u6982\u8981\u7684\u306a\u77e5\u8b58\u3001\u57fa\u672c\u7684\u306a\u30af\u30e9\u30b9"},"content":{"rendered":"<h2>BootStrap\u306e\u7279\u5fb4<\/h2>\n<ul>\n<li>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6Web\u30c7\u30b6\u30a4\u30f3\u3067\u30de\u30eb\u30c1\u30c7\u30d0\u30a4\u30b9\u306b\u5bfe\u5fdc<\/li>\n<li>\u30d5\u30a9\u30fc\u30e0\u3084\u30dc\u30bf\u30f3\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u7b49\u3092\u30d1\u30fc\u30c4\u3068\u3057\u3066\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u3002<\/li>\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067jQuery\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>HTML5\u306b\u6e96\u62e0\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u308a\u6a2a\u5e45\u309212\u5206\u5272\u3067\u69cb\u6210\u3057\u3066\u3044\u308b\u3002\uff084\u3088\u308a\uff09<\/li>\n<\/ul>\n<h2>\u6b74\u53f2<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<th>\u30ea\u30ea\u30fc\u30b9\u65e5<\/th>\n<th>\u7279\u5fb4<\/th>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2011\u5e748\u670819\u65e5<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2012\u5e741\u670831\u65e5<\/td>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a12\u30ab\u30e9\u30e0\u306e\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>2013\u5e748\u670819\u65e5<\/td>\n<td>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30d5\u30e9\u30c3\u30c8\u30c7\u30b6\u30a4\u30f3\u3092\u63a1\u7528\u3001\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>2018\u5e741\u670818\u65e5<\/td>\n<td>flexbox\u30b5\u30dd\u30fc\u30c8\u3001\u5358\u4f4d\u304crem\u3001\u30b0\u30ea\u30d5\u30a2\u30a4\u30b3\u30f3\u306e\u5ec3\u6b62<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb<\/h2>\n<p>\u4e0b\u8a183\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul>\n<li>bootstrap\u306eCSS<\/li>\n<li>bootstrap\u306eJS<\/li>\n<li>jQuery<\/li>\n<\/ul>\n<h3>CSS\u30d5\u30a1\u30a4\u30eb<\/h3>\n<h4>bootstrap.css<\/h4>\n<p>BootStrap\u306e\u5168\u3066\u306e\u6a5f\u80fd\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306b\u4f7f\u3046\u3002<\/p>\n<h3>bootstrap-grid.css<\/h3>\n<p>\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u30ec\u30a4\u30a2\u30a6\u30c8\u3084Flex\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306e\u307f\u4f7f\u3044\u305f\u3044\u5834\u5408\u306b\u4f7f\u3046\u3002<\/p>\n<h3>bootstrap-reboot.css<\/h3>\n<p>Reboot\u6a5f\u80fd\u306e\u307f\u4f7f\u3044\u305f\u3044\u5834\u5408\u306b\u4f7f\u3046\u3002\uff08\u30d6\u30e9\u30a6\u30b6\u3054\u3068\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b9\u30bf\u30a4\u30eb\u306e\u5dee\u7570\u3092\u306a\u304f\u3059\uff09<\/p>\n<h3>JS\u30d5\u30a1\u30a4\u30eb<\/h3>\n<h3>bootstrap.bundle.js<\/h3>\n<p>BootStrap\u306e\u5168\u6a5f\u80fd\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>bootstrap.js<\/h4>\n<p>popper.js\u304c\u542b\u307e\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u8aad\u307f\u8fbc\u307f\u65b9\u6cd5<\/h2>\n<h3>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8aad\u307f\u8fbc\u3080<\/h3>\n<p>\u30cd\u30c3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u74b0\u5883\u3067\u5229\u7528\u3055\u308c\u307e\u3059\u3002\u8aad\u307f\u8fbc\u3080\u969b\u306f<span style=\"color: #ff0000;\"><strong>\u300cintegrity\u5c5e\u6027\u300d\u53ca\u3073\u300ccrossorign\u5c5e\u6027\u300d\u306f\u4e0d\u8981<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>CDN(Contents Delivary Network)\u304b\u3089\u8aad\u307f\u8fbc\u3080<\/h3>\n<p>\u4e00\u756a\u7c21\u5358\u3067\u304a\u624b\u8efd\u3067\u30cd\u30c3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre class=\"lang:default decode:true\">&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.4.1.slim.min.js\"\r\nintegrity=\"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n\" \r\ncrossorigin=\"anonymous\"&gt;\r\n&lt;\/script&gt;\r\n<\/pre>\n<h4>integrity<\/h4>\n<p>\u8aad\u307f\u8fbc\u3093\u3060\u30d5\u30a1\u30a4\u30eb\u304c\u6539\u7ac4\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30cf\u30c3\u30b7\u30e5\u5024\u3067\u3059\u3002<\/p>\n<\/div>\n<h3>npm\u304b\u3089\u8aad\u307f\u8fbc\u3080<\/h3>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u306a\u306e\u3067\u5927\u5909<\/p>\n<h2>\u96db\u5f62HTML\u306e\u4f5c\u6210<\/h2>\n<p>\u96db\u5f62HTML\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">&lt;!doctype html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"utf-8\"&gt;\r\n&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"&gt;\r\n&lt;link rel=\"stylesheet\" href=\"css\/bootstrap.min.css\"&gt;\r\n&lt;title&gt;\u30bf\u30a4\u30c8\u30eb&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h1 class=\"text-success\"&gt;\u30c6\u30b9\u30c8\u3067\u3059\u3002&lt;\/h1&gt;\r\n&lt;script src=\"js\/jquery-3.3.1.slim.min.js\"&gt;&lt;\/script&gt; \r\n&lt;script src=\"js\/bootstrap.bundle.min.js\"&gt;&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<h3>\u7279\u5fb4<\/h3>\n<ul>\n<li>BootStrap\u306fHTM5\u306b\u6e96\u62e0\u3057\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n<h3>viewport\u306e\u6307\u5b9a<\/h3>\n<h4>content=\"width=device-width, initial-scale=1<\/h4>\n<p>\u30c7\u30d0\u30a4\u30b9\u5e45\u306b\u5408\u308f\u305b\u3066\u30ba\u30fc\u30e0\u500d\u7387\u30921\u500d\u306b\u3059\u308b\u3002<\/p>\n<h4>shrink-to-fit=no<\/h4>\n<p>iOS9\u306eSafari\u3067initial-scale\u304c\u9069\u5fdc\u3055\u308c\u306a\u3044\u306e\u3092\u56de\u907f\u3059\u308b\u3002<\/p>\n<h3>JavaScript\u306e\u8aad\u307f\u8fbc\u307f\u9806\u756a<\/h3>\n<p>JavaScript\u30d5\u30a1\u30a4\u30eb\u306f\u4e0b\u8a18\u306e\u9806\u756a\u3067\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<ol>\n<li>jQuery<\/li>\n<li>BootStrap<\/li>\n<li>\u3082\u3057\u305d\u306e\u4ed6\u5fc5\u8981\u306aJavaScript\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<\/ol>\n<h2>\u8272\u306e\u7a2e\u985e<\/h2>\n<p>BootStrap\u3067\u306f\u8272\u306f\u8272\u540d\u3067\u793a\u3059\u306e\u3067\u306f\u306a\u304f\u7279\u6b8a\u306a\u82f1\u5358\u8a9e\u3067\u793a\u3059\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u5358\u8a9e<\/th>\n<th>\u8272<\/th>\n<\/tr>\n<tr>\n<td>primary<\/td>\n<td>\u9752\u7cfb<\/td>\n<\/tr>\n<tr>\n<td>secondary<\/td>\n<td>\u30b0\u30ec\u30fc<\/td>\n<\/tr>\n<tr>\n<td>success<\/td>\n<td>\u7dd1\u7cfb<\/td>\n<\/tr>\n<tr>\n<td>danger<\/td>\n<td>\u8d64\u7cfb<\/td>\n<\/tr>\n<tr>\n<td>warning<\/td>\n<td>\u9ec4\u7cfb<\/td>\n<\/tr>\n<tr>\n<td>info<\/td>\n<td>\u6c34\u8272\u7cfb<\/td>\n<\/tr>\n<tr>\n<td>light<\/td>\n<td>\u660e\u308b\u3044\u30b0\u30ec\u30fc<\/td>\n<\/tr>\n<tr>\n<td>dark<\/td>\n<td>\u6697\u3044\u30b0\u30ec\u30fc<\/td>\n<\/tr>\n<tr>\n<td>white<\/td>\n<td>\u767d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u57fa\u672c\u7684\u306a\u30af\u30e9\u30b9<\/h2>\n<h3>\u898b\u51fa\u3057\u95a2\u9023<\/h3>\n<div>\n<h4>display-N<\/h4>\n<\/div>\n<div>\u898b\u51fa\u3057\u3092\u76ee\u7acb\u305f\u305b\u308b\u3002\u901a\u5e38\u306eh1\u3001h2\u3088\u308a\u3082\u5927\u304d\u3044\u6587\u5b57\u306b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u6570\u5b57\u304c\u5c0f\u3055\u3044\u307b\u3069\u3088\u308a\u76ee\u7acb\u305f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<h3>\u914d\u7f6e\u95a2\u9023<\/h3>\n<h4>.container<\/h4>\n<p>\u56fa\u5b9a\u5e45\u30b3\u30f3\u30c6\u30ca<\/p>\n<h4>.container-fluid<\/h4>\n<p>\u53ef\u5909\u5e45\u30b3\u30f3\u30c6\u30ca<\/p>\n<h4>.justify-content-end<\/h4>\n<p>\u53f3\u5074\u306b\u914d\u7f6e\u3067\u304d\u308b\u3002<\/p>\n<h3>\u90e8\u54c1\u95a2\u9023<\/h3>\n<h4>bg-\u8272<\/h4>\n<p>\u80cc\u666f\u306b\u8272\u3092\u3064\u3051\u308b\u3002<\/p>\n<h4>text-\u8272<\/h4>\n<p>\u30c6\u30ad\u30b9\u30c8\u306b\u8272\u3092\u4ed8\u3051\u308b\u3002<\/p>\n<h3>\u30ea\u30b9\u30c8\u95a2\u9023<\/h3>\n<h4>list-unstyled<\/h4>\n<p>\u30ea\u30b9\u30c8\u30b9\u30bf\u30a4\u30eb\u3092\u89e3\u9664\u3057\u3066\u7e26\u4e26\u3073\u306e\u307e\u307e\u5de6\u306b\u8a70\u3081\u307e\u3059\u3002<\/p>\n<h4>list-inline(ul\u306b\u9069\u7528)\u3068list-inline-item(li\u306b\u9069\u7528)<\/h4>\n<p>\u30ea\u30b9\u30c8\u30b9\u30bf\u30a4\u30eb\u3092\u89e3\u9664\u3057\u3066\u6a2a\u4e26\u3073\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u753b\u9762\u306b\u60c5\u5831\u3092\u591a\u304f\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306b\u3088\u304f\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h3>\u753b\u50cf\u95a2\u9023<\/h3>\n<h4>img-fluid<\/h4>\n<p>\u89aa\u8981\u7d20\u306e\u30b5\u30a4\u30ba\u306b\u5408\u308f\u305b\u3066\u753b\u50cf\u30b5\u30a4\u30ba\u304c\u5909\u5316\u3057\u307e\u3059\u3002<\/p>\n<h4>img-thumbnail<\/h4>\n<p>\u89aa\u8981\u7d20\u306e\u30b5\u30a4\u30ba\u306b\u5408\u308f\u305b\u3066\u753b\u50cf\u30b5\u30a4\u30ba\u304c\u5909\u5316\u3057\u3055\u3089\u306b1px\u5e45\u306e\u30dc\u30fc\u30c0\u30fc\u304c\u753b\u50cf\u306e\u5468\u308a\u306b\u3064\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30c6\u30fc\u30d6\u30eb\u95a2\u9023<\/h3>\n<h4>table table-striped<\/h4>\n<p>\u7e1e\u6a21\u69d8\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>table table-hover<\/h4>\n<p>\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3059\u308b\u3068\u8272\u304c\u5909\u308f\u308b\u30c6\u30fc\u30d6\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>table table-sm<\/h4>\n<p>\u30c6\u30fc\u30d6\u30eb\u306e\u4f59\u767d\u3092\u5c11\u3057\u30ab\u30c3\u30c8\u3057\u305f\u30b3\u30f3\u30d1\u30af\u30c8\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30dc\u30fc\u30c0\u30fc\u95a2\u9023<\/h3>\n<h4>border-\u8272<\/h4>\n<p>\u67a0\u7dda\u306b\u8272\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<h4>rounded<\/h4>\n<p>\u4e38\u304f\u5207\u308a\u629c\u3044\u305f\u89d2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>rounded-lg<\/h4>\n<p>\u534a\u5f84\u306e\u5927\u304d\u3044\u89d2\u4e38\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>rounded-circle<\/h4>\n<p>\u753b\u50cf\u304c\u4e38\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>rounded-pill<\/h4>\n<p>\u753b\u50cf\u304c\u30ab\u30d7\u30bb\u30eb\u578b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30b7\u30e3\u30c9\u30a6\u95a2\u9023<\/h3>\n<h4>shadow-sm<\/h4>\n<p>\u5c0f\u3055\u3081\u306e\u5f71<\/p>\n<h4>shadow<\/h4>\n<p>\u6a19\u6e96\u306e\u5f71<\/p>\n<h4>shadow-lg<\/h4>\n<p>\u5927\u304d\u3081\u306e\u5f71<\/p>\n","protected":false},"excerpt":{"rendered":"BootStrap\u306e\u7279\u5fb4 \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6Web\u30c7\u30b6\u30a4\u30f3\u3067\u30de\u30eb\u30c1\u30c7\u30d0\u30a4\u30b9\u306b\u5bfe\u5fdc \u30d5\u30a9\u30fc\u30e0\u3084\u30dc\u30bf\u30f3\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u7b49\u3092\u30d1\u30fc\u30c4\u3068\u3057\u3066\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067jQuery\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 H [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[64],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8244"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8244"}],"version-history":[{"count":15,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8244\/revisions"}],"predecessor-version":[{"id":20142,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8244\/revisions\/20142"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8244"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}