{"id":9847,"date":"2018-12-11T14:17:17","date_gmt":"2018-12-11T05:17:17","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9847"},"modified":"2019-03-01T08:09:40","modified_gmt":"2019-02-28T23:09:40","slug":"bootstrap%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e3%81%ae%e5%8b%89%e5%bc%b7%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9847","title":{"rendered":"bootstrap\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u30e1\u30e2"},"content":{"rendered":"<p>CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u6709\u540d\u306a\u3001Twitter bootstrap\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u30e1\u30e2\u3067\u3059\u3002<\/p>\n<h2>bootstrap\u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/h2>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066FTP\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u306a\u304f\u3066\u3082CDN\u304b\u3089include\u3059\u308b\u8a18\u8ff0\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >\/\/4\u7cfb\r\n\/\/\u30d8\u30c3\u30c0\u306b\u8a18\u8ff0\r\n&lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.3\/css\/bootstrap.min.css\" integrity=\"sha384-MCw98\/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO\" crossorigin=\"anonymous\"&gt;\r\n\r\n\/\/\u30d5\u30c3\u30bf\u306b\u8a18\u8ff0\r\n&lt;!-- \u30aa\u30d7\u30b7\u30e7\u30f3\u306eJavaScript --&gt;\r\n&lt;!-- \u6700\u521d\u306bjQuery\u3001\u6b21\u306bPopper.js\u3001\u6b21\u306bBootstrap JS --&gt;\r\n&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.3.1.slim.min.js\" integrity=\"sha384-q8i\/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/popper.js\/1.14.3\/umd\/popper.min.js\" integrity=\"sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK\/l8WvCWPIPm49\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.3\/js\/bootstrap.min.js\" integrity=\"sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW\/JmZQ5stwEULTy\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\r\n<\/pre>\n<h2>\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0<\/h2>\n<p>bootstrap\u306f\u3001<strong>12\u672c\u306e\u30b0\u30ea\u30c3\u30c9<\/strong>\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u3066\u3001\u5e45\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306b\u305d\u306e\u30b0\u30ea\u30c3\u30c9\u306e\u3069\u308c\u3060\u3051\u3092\u5229\u7528\u3059\u308b\u304b\u3092\u6307\u5b9a\u3067\u304d\u3001\u5e45\u6307\u5b9a\u304c\u30b9\u30e0\u30fc\u30ba\u3067\u3059\u3002<\/p>\n<h2>\u30af\u30e9\u30b9<\/h2>\n<p>.container\u3000\u30af\u30e9\u30b9<\/p>\n<p>\u5168\u4f53\u3092\u56f2\u3046\u30b3\u30f3\u30c6\u30ca\u3067\u3059\u3002<br \/>\n\u753b\u9762\u5e45\u306b\u3088\u3063\u3066\u53ef\u5909\u3067\u3059\u3002<\/p>\n<p>.container-fluid\u3000\u30af\u30e9\u30b9<br \/>\n\u53ef\u5909\u306e\u30b3\u30f3\u30c6\u30ca\u3067\u3059<\/p>\n<p>.row<br \/>\n\u884c\u306b\u4e0e\u3048\u308b\u30af\u30e9\u30b9<\/p>\n<p>.col<br \/>\n\u5217\u306b\u4e0e\u3048\u308b\u30af\u30e9\u30b9<\/p>\n<p>.col-\u753b\u9762\u5e45-\u30b0\u30ea\u30c3\u30c9\u6570<\/p>\n<p>\u753b\u9762\u5e45<br \/>\nbootstrap3\u7cfb .col-xs Extra Samll \u30aa\u30fc\u30c8\u30ec\u30a4\u30a2\u30a6\u30c8(\u5168\u5e45\u306b\u5bfe\u5fdc\u3001\u4e3b\u306b\u30b9\u30de\u30db\u7e26\u7528)<br \/>\nbootstrap4\u7cfb .col- Extra Samll \u30aa\u30fc\u30c8\u30ec\u30a4\u30a2\u30a6\u30c8(\u5168\u5e45\u306b\u5bfe\u5fdc\u3001\u4e3b\u306b\u30b9\u30de\u30db\u7e26\u7528)<br \/>\n3\u3001\uff14\u5171\u901a .col-sm Samll 576px(\u30b9\u30de\u30db\u6a2a)<br \/>\n3\u3001\uff14\u5171\u901a .col-md Medium 720px (PC)<br \/>\n3\u3001\uff14\u5171\u901a .col-lg Large 940px(PC)<br \/>\n3\u3001\uff14\u5171\u901a .col-xl ExtraLarge 114opx(PC)<\/p>\n<h2>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u5bfe\u5fdc<\/h2>\n<p>\u5217\u306e\u30b0\u30ea\u30c3\u30c9\u6307\u5b9a\u306f\u300112\u3092\u8d85\u3048\u308b\u3068\u81ea\u52d5\u7684\u306b\u6298\u308a\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066\u3001\u4f8b\u3048\u3070\u30ec\u30b7\u30dd\u30f3\u30b7\u30d6\u3067\u8a18\u8ff0\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >&lt;div class=\"container\"&gt;\r\n\r\n&lt;div class=\"col-xs-12 col-md-4\"&gt;\r\n\u5de6\u30ab\u30e9\u30e0(PC\u306e\u3068\u304d\u306f\u5de6\u30ab\u30e9\u30e0\u306e\u96a3\u306b\u53f3\u30ab\u30e9\u30e0\u304c\u56de\u308a\u8fbc\u3080\u3001\u30b9\u30de\u30db\u306e\u3068\u304d\u306f\u4e0b\u306b\u56de\u308a\u3053\u3080)\r\n&lt;\/div&gt;\r\n&lt;div class=\"col-xs-12 col-md-8\"&gt;\r\n\u53f3\u30ab\u30e9\u30e0\r\n&lt;\/div&gt;\r\n\r\n&lt;\/div&gt;<\/pre>\n<p>\u4e0a\u8a18\u306fBootstrap3\u7cfb\u306e\u5834\u5408\u3067\u3001bootstrap\u304c4\u7cfb\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u8a18\u8ff0\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\ncol-xs\u304c4\u7cfb\u3067\u306fcol-\u306b\u306a\u3063\u3066\u3044\u308b\u4ed6\u3001container\u3060\u3051\u3067\u306a\u304f\u3001row\u3067\u56f2\u3063\u3066\u3084\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >&lt;div class=\"container\"&gt;\r\n &lt;div class=\"row\"&gt;\r\n&lt;div class=\"col-12 col-md-4\"&gt;\r\n\u5de6\u30ab\u30e9\u30e0(PC\u306e\u3068\u304d\u306f\u5de6\u30ab\u30e9\u30e0\u306e\u96a3\u306b\u53f3\u30ab\u30e9\u30e0\u304c\u56de\u308a\u8fbc\u3080\u3001\u30b9\u30de\u30db\u306e\u3068\u304d\u306f\u4e0b\u306b\u56de\u308a\u3053\u3080)\r\n&lt;\/div&gt;\r\n&lt;div class=\"col-12 col-md-8\"&gt;\r\n\u53f3\u30ab\u30e9\u30e0\r\n&lt;\/div&gt;\r\n &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3068\u3001\u30b9\u30de\u30db\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u3068\u304d\u306f\u5de6\u30ab\u30e9\u30e0\u306e\u4e0b\u306b\u53f3\u30ab\u30e9\u30e0\u304c\u5165\u308a\u307e\u3059\u3002(.col-xs-12 4\u7cfb\u3067\u306f .col-12\u304c\u9069\u7528\u3055\u308c\u308b)<br \/>\nPC\u3067\u898b\u305f\u6642\u306f\u3001\u5de6\u30ab\u30e9\u30e0\u306e\u6a2a\u306b\u53f3\u30ab\u30e9\u30e0\u304c\u56de\u308a\u8fbc\u307f\u307e\u3059(.col-md-4\u3001.col-md-8)<\/p>\n<h2>\u30e1\u30cb\u30e5\u30fc\u3092\u6298\u308a\u305f\u305f\u307f\u5f0f\u306b\u3057\u305f\u3044<\/h2>\n<p>collapse\u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30e1\u30cb\u30e5\u30fc\u3092\u6298\u308a\u305f\u305f\u307f\u5f0f\u306b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >&lt;button type=\"button\" class=\"btn btn-info\" data-toggle=\"collapse\" data-target=\"#menu\"&gt;menu&lt;\/button&gt;\r\n&lt;ul id=\"menu\" class=\"collapse\"&gt;\r\n    &lt;li&gt;&lt;\/li&gt;\r\n&lt;li&gt;&lt;\/li&gt;\r\n    &lt;\/ul&gt;<\/pre>\n<h2>\u30c6\u30fc\u30d6\u30eb\u306etd\u306e\u6a2a\u5e45<\/h2>\n<p>bootstrap4\u304b\u3089\u306f\u3001 class=&#8221;w-\u25ef\u25ef&#8221;(\u25ef\u25ef\u306f\u6570\u5b57)\u3067\u6a2a\u5e45\u3092%\u6307\u5b9a\u3067\u304d\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u6709\u540d\u306a\u3001Twitter bootstrap\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u30e1\u30e2\u3067\u3059\u3002 bootstrap\u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9 \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066FTP\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u306a\u304f\u3066\u3082CDN\u304b\u3089include\u3059\u308b\u8a18\u8ff0\u304c\u3067\u304d\u307e\u3059\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166,131],"tags":[],"class_list":["post-9847","post","type-post","status-publish","format-standard","hentry","category-bootstrap","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9847"}],"version-history":[{"count":1,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9847\/revisions"}],"predecessor-version":[{"id":9849,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9847\/revisions\/9849"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}