{"id":432,"date":"2023-03-31T18:58:08","date_gmt":"2023-03-31T09:58:08","guid":{"rendered":"https:\/\/baitimedx.com\/?p=432"},"modified":"2023-03-31T18:58:42","modified_gmt":"2023-03-31T09:58:42","slug":"%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ae%e5%a4%96%e8%a6%b3%e3%82%92%e6%b1%ba%e3%82%81%e3%82%8b%e8%a8%80%e8%aa%9ecss%e5%85%a5%e9%96%80-%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5%e3%81%a8%e3%83%97%e3%83%ad","status":"publish","type":"post","link":"https:\/\/baitimedx.com\/?p=432","title":{"rendered":"\u30b5\u30a4\u30c8\u306e\u5916\u89b3\u3092\u6c7a\u3081\u308b\u8a00\u8a9e\uff1fCSS\u5165\u9580 - \u57fa\u672c\u6982\u5ff5\u3068\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"594\" src=\"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-1024x594.jpg\" alt=\"\" class=\"wp-image-427\" srcset=\"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-1024x594.jpg 1024w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-300x174.jpg 300w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280-768x446.jpg 768w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">CSS\u306e\u57fa\u790e\u3092\u5b66\u307c\u3046\uff01<\/h2>\n\n\n\n<p>Web\u30da\u30fc\u30b8\u306e\u30c7\u30b6\u30a4\u30f3\u3084\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u6574\u3048\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\u8a00\u8a9e\u3001\u305d\u308c\u304cCSS\uff08Cascading Style Sheets\uff09\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001CSS\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5\u3084\u3001\u3069\u306e\u3088\u3046\u306b\u4f7f\u3046\u306e\u304b\u3001\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. CSS\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>CSS\uff08Cascading Style Sheets\uff09\u306f\u3001Web\u30da\u30fc\u30b8\u306e\u30b9\u30bf\u30a4\u30eb\u3084\u30c7\u30b6\u30a4\u30f3\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u8a00\u8a9e\u3067\u3059\u3002HTML\u3067\u69cb\u9020\u3084\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u305f\u5f8c\u3001CSS\u3092\u4f7f\u3063\u3066\u305d\u308c\u3089\u306e\u898b\u305f\u76ee\u3092\u6574\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30d5\u30a9\u30f3\u30c8\u306e\u7a2e\u985e\u3084\u8272\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u3001\u80cc\u666f\u8272\u306a\u3069\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. CSS\u3092HTML\u306b\u9069\u7528\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>CSS\u3092HTML\u306b\u9069\u7528\u3059\u308b\u65b9\u6cd5\u306f3\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol>\n<li><strong><span class=\"st-mymarker-s\">\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb<\/span><\/strong>: HTML\u30bf\u30b0\u5185\u306b\u76f4\u63a5\u3001\u30b9\u30bf\u30a4\u30eb\u5c5e\u6027\u3092\u4f7f\u3063\u3066CSS\u3092\u9069\u7528\u3057\u307e\u3059\u3002htmlCopy code<code>&lt;p style=\"color: blue;\"&gt;\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u306f\u9752\u8272\u306b\u306a\u308a\u307e\u3059\u3002&lt;\/p&gt;<\/code><\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">\u5185\u90e8\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8<\/span><\/strong>: HTML\u30d5\u30a1\u30a4\u30eb\u306e<code>&lt;head&gt;<\/code>\u30bf\u30b0\u5185\u306b<code>&lt;style&gt;<\/code>\u30bf\u30b0\u3092\u4f7f\u3063\u3066CSS\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002htmlCopy code<code>&lt;head&gt; &lt;style&gt; p { color: blue; } &lt;\/style&gt; &lt;\/head&gt;<\/code><\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">\u5916\u90e8\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8<\/span><\/strong>: CSS\u3092\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u3001HTML\u30d5\u30a1\u30a4\u30eb\u3067\u30ea\u30f3\u30af\u3057\u307e\u3059\u3002\u3053\u308c\u304c\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u3067\u3059\u3002htmlCopy code<code>&lt;head&gt; &lt;link rel=\"stylesheet\" href=\"styles.css\"&gt; &lt;\/head&gt;<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u30bb\u30ec\u30af\u30bf\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>\u30bb\u30ec\u30af\u30bf\u306f\u3001HTML\u8981\u7d20\u3092\u5bfe\u8c61\u3068\u3057\u3066CSS\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u65b9\u6cd5\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4e3b\u306a\u30bb\u30ec\u30af\u30bf\u306e\u7a2e\u985e\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol>\n<li><strong><span class=\"st-mymarker-s\">\u8981\u7d20\u30bb\u30ec\u30af\u30bf<\/span><\/strong>: \u8981\u7d20\u540d\u3092\u6307\u5b9a\u3057\u3066\u3001\u305d\u306e\u8981\u7d20\u5168\u4f53\u306b\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\u3002cssCopy code<code>p { color: red; }<\/code><\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">\u30af\u30e9\u30b9\u30bb\u30ec\u30af\u30bf<\/span><\/strong>: HTML\u8981\u7d20\u306b<code>class<\/code>\u5c5e\u6027\u3092\u4f7f\u3063\u3066\u540d\u524d\u3092\u4ed8\u3051\u3001\u305d\u306e\u540d\u524d\u3092\u4f7f\u3063\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9\u540d\u306e\u524d\u306b<code>.<\/code>\u3092\u4ed8\u3051\u307e\u3059\u3002cssCopy code<code>.important { font-weight: bold; }<\/code><\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">ID\u30bb\u30ec\u30af\u30bf<\/span><\/strong> : HTML\u8981\u7d20\u306b<code>id<\/code>\u5c5e\u6027\u3092\u4f7f\u3063\u3066\u540d\u524d\u3092\u4ed8\u3051\u3001\u305d\u306e\u540d\u524d\u3092\u4f7f\u3063\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\u3002ID\u540d\u306e\u524d\u306b<code>#<\/code>\u3092\u4ed8\u3051\u307e\u3059\u3002ID\u306f\u30da\u30fc\u30b8\u5185\u3067\u4e00\u610f\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>#main-header {\n  font-size: 24px;\n}<\/code><\/pre>\n\n\n\n<ol start=\"4\">\n<li><strong><span class=\"st-mymarker-s\">\u5c5e\u6027\u30bb\u30ec\u30af\u30bf<\/span><\/strong>: \u8981\u7d20\u306e\u7279\u5b9a\u306e\u5c5e\u6027\u306b\u57fa\u3065\u3044\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a[target=\"_blank\"] {\n  color: green;\n}<\/code><\/pre>\n\n\n\n<ol start=\"5\">\n<li><strong><span class=\"st-mymarker-s\">\u64ec\u4f3c\u30af\u30e9\u30b9\u30bb\u30ec\u30af\u30bf<\/span><\/strong>: \u7279\u5b9a\u306e\u72b6\u614b\u3084\u9806\u5e8f\u306b\u57fa\u3065\u3044\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>p:first-child {\n  color: blue;\n}\n\na:hover {\n  text-decoration: underline;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u5024<\/h2>\n\n\n\n<p>CSS\u3067\u306f\u3001\u30bb\u30ec\u30af\u30bf\u3067\u9078\u629e\u3057\u305f\u8981\u7d20\u306b\u5bfe\u3057\u3066\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u5024\u3092\u4f7f\u3063\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30b9\u30bf\u30a4\u30eb\u306e\u7a2e\u985e\u3092\u8868\u3057\u3001\u5024\u306f\u305d\u306e\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>h1 {\n  font-family: Arial, sans-serif;\n  font-size: 32px;\n}<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001<code>font-family<\/code>\u3068<code>font-size<\/code>\u304c\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3001\u305d\u308c\u305e\u308c<code>Arial, sans-serif<\/code>\u3068<code>32px<\/code>\u304c\u5024\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u30dc\u30c3\u30af\u30b9\u30e2\u30c7\u30eb<\/h2>\n\n\n\n<p>\u30dc\u30c3\u30af\u30b9\u30e2\u30c7\u30eb\u306f\u3001HTML\u8981\u7d20\u306e\u5468\u56f2\u306b\u3042\u308b\u4f59\u767d\u3084\u5883\u754c\u7dda\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u6982\u5ff5\u3067\u3059\u3002\u30dc\u30c3\u30af\u30b9\u30e2\u30c7\u30eb\u306f\u3001\u6b21\u306e4\u3064\u306e\u8981\u7d20\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol>\n<li><strong><span class=\"st-mymarker-s\">\u30b3\u30f3\u30c6\u30f3\u30c4<\/span><\/strong>: \u8981\u7d20\u5185\u306e\u5b9f\u969b\u306e\u30c6\u30ad\u30b9\u30c8\u3084\u753b\u50cf\u306a\u3069\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">\u30d1\u30c7\u30a3\u30f3\u30b0<\/span><\/strong>: \u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u5883\u754c\u7dda\u306e\u9593\u306e\u4f59\u767d\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">\u30dc\u30fc\u30c0\u30fc<\/span><\/strong>: \u8981\u7d20\u306e\u5468\u56f2\u3092\u53d6\u308a\u56f2\u3080\u7dda\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">\u30de\u30fc\u30b8\u30f3<\/span><\/strong>: \u8981\u7d20\u3068\u4ed6\u306e\u8981\u7d20\u3068\u306e\u9593\u306e\u4f59\u767d\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u8981\u7d20\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>div {\n  padding: 10px;\n  border: 2px solid black;\n  margin: 15px;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u95a2\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n\n\n\n<p>\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5236\u5fa1\u3059\u308b\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol>\n<li><strong><span class=\"st-mymarker-s\">display<\/span><\/strong>: \u8981\u7d20\u306e\u8868\u793a\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4e3b\u306a\u5024\u306b\u306f\u3001<code>block<\/code>\u3001<code>inline<\/code>\u3001<code>inline-block<\/code>\u3001<code>flex<\/code>\u3001<code>grid<\/code>\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">position<\/span><\/strong>: \u8981\u7d20\u306e\u4f4d\u7f6e\u4ed8\u3051\u65b9\u6cd5\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>static<\/code>\u3001<code>relative<\/code>\u3001<code>absolute<\/code>\u3001<code>fixed<\/code>\u3001<code>sticky<\/code>\u304c\u4e3b\u306a\u5024\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">float<\/span><\/strong>: \u8981\u7d20\u3092\u5de6\u53f3\u306b\u5bc4\u305b\u3066\u3001\u4ed6\u306e\u8981\u7d20\u304c\u305d\u306e\u5468\u308a\u306b\u56de\u308a\u8fbc\u3080\u3088\u3046\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002\u4e3b\u306a\u5024\u306f<code>left<\/code>\u3001<code>right<\/code>\u3001<code>none<\/code>\u3067\u3059\u3002 4. <strong>clear<\/strong>: float\u3055\u308c\u305f\u8981\u7d20\u306e\u56de\u308a\u8fbc\u307f\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002<code>left<\/code>\u3001<code>right<\/code>\u3001<code>both<\/code>\u3001<code>none<\/code>\u304c\u4e3b\u306a\u5024\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">flexbox<\/span><\/strong>: \u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3002<code>display: flex<\/code>\u3092\u4f7f\u3063\u3066\u9069\u7528\u3057\u307e\u3059\u3002<code>flex-direction<\/code>\u3001<code>justify-content<\/code>\u3001<code>align-items<\/code>\u3001<code>flex-wrap<\/code>\u306a\u3069\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">grid<\/span><\/strong>: 2\u6b21\u5143\u306e\u30b0\u30ea\u30c3\u30c9\u30d9\u30fc\u30b9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30b7\u30b9\u30c6\u30e0\u3002<code>display: grid<\/code>\u3092\u4f7f\u3063\u3066\u9069\u7528\u3057\u307e\u3059\u3002<code>grid-template-columns<\/code>\u3001<code>grid-template-rows<\/code>\u3001<code>grid-gap<\/code>\u3001<code>grid-auto-flow<\/code>\u306a\u3069\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4f8b:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>.container {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.box {\n  width: 100px;\n  height: 100px;\n  margin: 10px;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">7. \u30c6\u30ad\u30b9\u30c8\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0<\/h2>\n\n\n\n<p>\u30c6\u30ad\u30b9\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u5236\u5fa1\u3059\u308b\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol>\n<li><strong><span class=\"st-mymarker-s\">font-family<\/span><\/strong>: \u30d5\u30a9\u30f3\u30c8\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u30d5\u30a9\u30f3\u30c8\u3084Web\u30d5\u30a9\u30f3\u30c8\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">font-size<\/span><\/strong>: \u30d5\u30a9\u30f3\u30c8\u306e\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u5358\u4f4d\u306b\u306f<code>px<\/code>\u3001<code>em<\/code>\u3001<code>rem<\/code>\u3001<code>%<\/code>\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">font-weight<\/span><\/strong>: \u30d5\u30a9\u30f3\u30c8\u306e\u592a\u3055\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>normal<\/code>\u3001<code>bold<\/code>\u3001<code>bolder<\/code>\u3001<code>lighter<\/code>\u3001\u307e\u305f\u306f\u6570\u5024\uff08100-900\uff09\u304c\u4f7f\u3048\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">font-style<\/span><\/strong>: \u30d5\u30a9\u30f3\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>normal<\/code>\u3001<code>italic<\/code>\u3001<code>oblique<\/code>\u304c\u4e3b\u306a\u5024\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">text-decoration<\/span><\/strong>: \u30c6\u30ad\u30b9\u30c8\u306e\u88c5\u98fe\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>none<\/code>\u3001<code>underline<\/code>\u3001<code>overline<\/code>\u3001<code>line-through<\/code>\u304c\u4e3b\u306a\u5024\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">text-align<\/span><\/strong>: \u30c6\u30ad\u30b9\u30c8\u306e\u6c34\u5e73\u65b9\u5411\u306e\u914d\u7f6e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>left<\/code>\u3001<code>right<\/code>\u3001<code>center<\/code>\u3001<code>justify<\/code>\u304c\u4e3b\u306a\u5024\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong><span class=\"st-mymarker-s\">line-height<\/span><\/strong>: \u884c\u306e\u9ad8\u3055\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u5358\u4f4d\u306a\u3057\u306e\u6570\u5024\u3084<code>px<\/code>\u3001<code>em<\/code>\u3001<code>%<\/code>\u306a\u3069\u304c\u4f7f\u3048\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4f8b:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>p {\n  font-family: 'Roboto', sans-serif;\n  font-size: 16px;\n  font-weight: 400;\n  font-style: italic;\n  text-decoration: underline;\n  text-align: justify;\n  line-height: 1.5;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">8. \u8272\u3068\u80cc\u666f<\/h2>\n\n\n\n<p>\u8272\u3084\u80cc\u666f\u306b\u95a2\u3059\u308b\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol>\n<li><strong><span class=\"st-mymarker-s\">color<\/span><\/strong>: \u30c6\u30ad\u30b9\u30c8\u306e\u8272\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u8272\u540d\u3001RGB\u3001RGBA\u3001HEX\u3001HSL\u3001HSLA\u306a\u3069\u306e\u5f62\u5f0f\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>p {\n  color: #333333;\n}<\/code><\/pre>\n\n\n\n<ol start=\"2\">\n<li><strong><span class=\"st-mymarker-s\">background-color<\/span><\/strong>: \u8981\u7d20\u306e\u80cc\u666f\u8272\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u8272\u540d\u3001RGB\u3001RGBA\u3001HEX\u3001HSL\u3001HSLA\u306a\u3069\u306e\u5f62\u5f0f\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>div {\n  background-color: rgba(255, 255, 0, 0.5);\n}<\/code><\/pre>\n\n\n\n<ol start=\"3\">\n<li><strong><span class=\"st-mymarker-s\">background-image<\/span><\/strong>: \u8981\u7d20\u306e\u80cc\u666f\u753b\u50cf\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u753b\u50cf\u306eURL\u307e\u305f\u306f<code>gradient<\/code>\u95a2\u6570\u3092\u4f7f\u3063\u3066\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>body {\n  background-image: url(\"background.jpg\");\n}<\/code><\/pre>\n\n\n\n<ol start=\"4\">\n<li><strong><span class=\"st-mymarker-s\">background-repeat<\/span><\/strong>: \u80cc\u666f\u753b\u50cf\u306e\u7e70\u308a\u8fd4\u3057\u65b9\u6cd5\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>repeat<\/code>\u3001<code>repeat-x<\/code>\u3001<code>repeat-y<\/code>\u3001<code>no-repeat<\/code>\u304c\u4e3b\u306a\u5024\u3067\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>body {\n  background-repeat: no-repeat;\n}<\/code><\/pre>\n\n\n\n<ol start=\"5\">\n<li><strong><span class=\"st-mymarker-s\">background-position<\/span><\/strong>: \u80cc\u666f\u753b\u50cf\u306e\u4f4d\u7f6e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>left<\/code>\u3001<code>center<\/code>\u3001<code>right<\/code>\u3001<code>top<\/code>\u3001<code>bottom<\/code>\u3001\u307e\u305f\u306f\u5177\u4f53\u7684\u306a\u5024\uff08<code>px<\/code>\u3001<code>%<\/code>\u3001<code>em<\/code>\u306a\u3069\uff09\u3092\u4f7f\u3063\u3066\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>body {\n  background-position: center top;\n}<\/code><\/pre>\n\n\n\n<ol start=\"6\">\n<li><strong><span class=\"st-mymarker-s\">background-size<\/span><\/strong>: \u80cc\u666f\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>auto<\/code>\u3001<code>cover<\/code>\u3001<code>contain<\/code>\u3001\u307e\u305f\u306f\u5177\u4f53\u7684\u306a\u5024\uff08<code>px<\/code>\u3001<code>%<\/code>\u3001<code>em<\/code>\u306a\u3069\uff09\u3092\u4f7f\u3063\u3066\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>body {\n  background-size: cover;\n}<\/code><\/pre>\n\n\n\n<ol start=\"7\">\n<li><strong><span class=\"st-mymarker-s\">background<\/span><\/strong>: \u8272\u3001\u753b\u50cf\u3001\u7e70\u308a\u8fd4\u3057\u3001\u4f4d\u7f6e\u3001\u30b5\u30a4\u30ba\u306a\u3069\u3001\u80cc\u666f\u306b\u95a2\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u307e\u3068\u3081\u3066\u6307\u5b9a\u3067\u304d\u308b\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>body {\n  background: url(\"background.jpg\") no-repeat center top \/ cover;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001CSS\uff08Cascading Style Sheets\uff09\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5\u3068\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002CSS\u306fWeb\u30da\u30fc\u30b8\u306e\u30c7\u30b6\u30a4\u30f3\u3084\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5236\u5fa1\u3059\u308b\u8a00\u8a9e\u3067\u3042\u308a\u3001HTML\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u308f\u308c\u307e\u3059\u3002CSS\u306e\u9069\u7528\u65b9\u6cd5\u306b\u306f\u3001\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u3001\u5185\u90e8\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3001\u5916\u90e8\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e3\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30bb\u30ec\u30af\u30bf\u306f\u3001HTML\u8981\u7d20\u306b\u5bfe\u3057\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\u3002\u8981\u7d20\u30bb\u30ec\u30af\u30bf\u3001\u30af\u30e9\u30b9\u30bb\u30ec\u30af\u30bf\u3001ID\u30bb\u30ec\u30af\u30bf\u3001\u5c5e\u6027\u30bb\u30ec\u30af\u30bf\u3001\u64ec\u4f3c\u30af\u30e9\u30b9\u30bb\u30ec\u30af\u30bf\u306a\u3069\u304c\u4e3b\u306a\u30bb\u30ec\u30af\u30bf\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u30dc\u30c3\u30af\u30b9\u30e2\u30c7\u30eb\u306e\u6982\u5ff5\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u3067\u3001\u8981\u7d20\u306e\u5468\u56f2\u306e\u4f59\u767d\u3084\u5883\u754c\u7dda\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u3084\u30c6\u30ad\u30b9\u30c8\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u3001\u8272\u3068\u80cc\u666f\u306b\u95a2\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3063\u3066\u3001Web\u30da\u30fc\u30b8\u306e\u898b\u305f\u76ee\u3092\u6574\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>CSS\u306f\u975e\u5e38\u306b\u591a\u6a5f\u80fd\u3067\u3042\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u57fa\u672c\u7684\u306a\u6982\u5ff5\u3084\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u7406\u89e3\u3057\u3001\u5b9f\u8df5\u3059\u308b\u3053\u3068\u3067\u3001Web\u30da\u30fc\u30b8\u306e\u30c7\u30b6\u30a4\u30f3\u3084\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u81ea\u4fe1\u3092\u6301\u3063\u3066\u53d6\u308a\u7d44\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5f15\u304d\u7d9a\u304d\u3001CSS\u306b\u95a2\u3059\u308b\u77e5\u8b58\u3092\u6df1\u3081\u308b\u305f\u3081\u306b\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u30c8\u30e9\u30f3\u30b8\u30b7\u30e7\u30f3\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u3001\u9ad8\u5ea6\u306a\u30bb\u30ec\u30af\u30bf\u3001\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\uff08Sass\u3084Less\u306a\u3069\uff09\u306a\u3069\u3001\u3055\u3089\u306b\u8a73\u7d30\u306a\u30c8\u30d4\u30c3\u30af\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u306e\u6982\u5ff5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u3088\u308a\u8907\u96d1\u306a\u30c7\u30b6\u30a4\u30f3\u3084\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u8981\u7d20\u3092Web\u30da\u30fc\u30b8\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001CSS\u3092\u7d99\u7d9a\u7684\u306b\u52c9\u5f37\u3059\u308b\u304d\u3063\u304b\u3051\u306b\u306a\u308c\u308c\u3070\u5e78\u3044\u3067\u3059\uff01<\/p>\n\n\n\n<p>\u4eca\u5f8c\u3082\u3001IT\u3084DX\u3001\u6295\u8cc7\u7b49\u306b\u95a2\u3059\u308b\u4eba\u751f\u3092\u8c4a\u304b\u306b\u3057\u3066\u81ea\u7531\u306a\u6642\u9593\u3092\u5897\u3084\u305b\u308b\u3088\u3046\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u306e\u3067\u662f\u975e\u304a\u697d\u3057\u307f\u306b\uff01<\/p>\n\n\n\n<p><strong>\u2193\u3000\u30aa\u30b9\u30b9\u30e1\u8a18\u4e8b\u3000\u2193<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=429\">\u5fc5\u9808\u306e\u8a00\u8a9e\uff1fHTML\u5165\u9580 &#8211; \u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u69cb\u7bc9\u306e\u57fa\u672c\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=425\">\u521d\u5fc3\u8005\u306b\u30aa\u30b9\u30b9\u30e1\u306e\u8a00\u8a9e\uff1fPython\u5165\u9580 &#8211; \u57fa\u790e\u304b\u3089\u5b66\u3076\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e16\u754c\u3078\u306e\u7b2c\u4e00\u6b69<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=419\">JavaScript\u5165\u9580 &#8211; \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u52d5\u4f5c\u3092\u4f5c\u308b\uff1f\u57fa\u790e\u304b\u3089\u5b66\u3076\u30a6\u30a7\u30d6\u958b\u767a\u306e\u8981<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS\u306e\u57fa\u790e\u3092\u5b66\u307c\u3046\uff01 Web\u30da\u30fc\u30b8\u306e\u30c7\u30b6\u30a4\u30f3\u3084\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u6574\u3048\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\u8a00\u8a9e\u3001\u305d\u308c\u304cCSS\uff08Cascading Style Sheets\uff09\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001CSS\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5\u3084\u3001\u3069\u306e\u3088\u3046\u306b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":427,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[10],"tags":[24,17,16],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/web-3967926_1280.jpg","_links":{"self":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/432"}],"collection":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=432"}],"version-history":[{"count":3,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/432\/revisions"}],"predecessor-version":[{"id":435,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/432\/revisions\/435"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/media\/427"}],"wp:attachment":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}