{"id":17654,"date":"2025-11-14T12:08:42","date_gmt":"2025-11-14T03:08:42","guid":{"rendered":"https:\/\/nxpg.net\/blog\/tech\/?p=17654"},"modified":"2025-12-02T12:18:50","modified_gmt":"2025-12-02T03:18:50","slug":"css%e3%81%a0%e3%81%91%e3%81%a7%e8%a4%87%e6%95%b0%e3%82%ab%e3%83%a9%e3%83%a0%e3%81%ae%e6%9c%80%e5%be%8c%e3%81%ae%e8%a1%8c%e3%81%ae%e3%83%9c%e3%83%bc%e3%83%80%e3%83%bc%e3%82%92%e6%b6%88%e3%81%99","status":"publish","type":"post","link":"https:\/\/nxpg.net\/blog\/tech\/?p=17654","title":{"rendered":"CSS\u3060\u3051\u3067\u8907\u6570\u30ab\u30e9\u30e0\u306e\u6700\u5f8c\u306e\u884c\u306e\u30dc\u30fc\u30c0\u30fc\u3092\u6d88\u3059\u65b9\u6cd5\u3002"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"960\" height=\"540\" src=\"https:\/\/nxpg.net\/blog\/tech\/wp-content\/uploads\/sites\/7\/e1febdc1b6fd2baabc41ab3d013cb93a-1.png\" alt=\"\" class=\"wp-image-17730\" srcset=\"https:\/\/nxpg.net\/blog\/tech\/wp-content\/uploads\/sites\/7\/e1febdc1b6fd2baabc41ab3d013cb93a-1.png 960w, https:\/\/nxpg.net\/blog\/tech\/wp-content\/uploads\/sites\/7\/e1febdc1b6fd2baabc41ab3d013cb93a-1-624x351.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/figure><\/div>\n\n\n<p><br>Web\u30da\u30fc\u30b8\u3067\u30dc\u30bf\u30f3\u30923\u5217\u3067\u4e26\u3079\u308b\u5834\u5408\u3001\u30c7\u30b6\u30a4\u30f3\u8981\u671b\u306b <strong>\u300c\u6700\u5f8c\u306e\u884c\u3060\u3051\u4e0b\u7dda\u3092\u6d88\u3059\u300d<\/strong> \u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30dc\u30bf\u30f3\u306e\u6570\u304c\u4e0d\u5b9a\u3067\u3082\u6b63\u78ba\u306b\u5bfe\u5fdc\u3059\u308b\u306b\u306f\u3001CSS\u3060\u3051\u3067\u3082\u5c11\u3057\u5de5\u592b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3092\u5b9f\u73fe\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"350\" data-theme-id=\"dark\" data-default-tab=\"result\" data-slug-hash=\"qEZdVYd\" data-pen-title=\"3\u5217\u30dc\u30bf\u30f3\" data-user=\"mgqhkiga-the-looper\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n      <span>See the Pen <a href=\"https:\/\/codepen.io\/mgqhkiga-the-looper\/pen\/qEZdVYd\">\n  3\u5217\u30dc\u30bf\u30f3<\/a> by \u305f\u3080 (<a href=\"https:\/\/codepen.io\/mgqhkiga-the-looper\">@mgqhkiga-the-looper<\/a>)\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n      <\/p>\n      <script async src=\"https:\/\/public.codepenassets.com\/embed\/index.js\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u6613\u306a\u66f8\u304d\u65b9\u306e\u554f\u984c\u70b9<\/h2>\n\n\n\n<p>\u4e0a\u8a18\u3092\u5b9f\u73fe\u3057\u305f\u3044\u3068\u304d\u306b\u6700\u521d\u306b\u601d\u3044\u3064\u304f\u306e\u306f\u3053\u306e\u30b3\u30fc\u30c9\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>  &amp;:nth-last-child(-n + 3) {\n    border-bottom: none;\n  }<\/strong><\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u306f\u3001\u6700\u5f8c\u306e3\u500b\u306b\u307e\u3068\u3081\u3066\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<br>\u3057\u304b\u3057\u3001\u6700\u5f8c\u306e\u884c\u304c1\u500b\u30842\u500b\u306e\u5834\u5408\u3001<strong>\u524d\u306e\u884c\u306e\u30dc\u30bf\u30f3\u307e\u3067\u4e0b\u7dda\u304c\u6d88\u3048\u3066\u3057\u307e\u3044\u307e\u3059<\/strong>\u3002\u305d\u306e\u305f\u3081\u3001\u5217\u6570\u56fa\u5b9a\u3067\u3082\u30dc\u30bf\u30f3\u6570\u304c\u4e0d\u5b9a\u306e\u3068\u304d\u306f\u6b63\u78ba\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u5168\u306b\u6700\u5f8c\u306e\u884c\u3060\u3051\u4e0b\u7dda\u3092\u6d88\u3059CSS<\/h2>\n\n\n\n<p>\u5217\u6570\u304c3\u5217\u56fa\u5b9a\u306e\u5834\u5408\u3001\u6b21\u306e\u66f8\u304d\u65b9\u3067\u6700\u5f8c\u306e\u884c\u3060\u3051\u4e0b\u7dda\u3092\u6d88\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\/* \u300c\u6700\u5f8c\u306e\u8981\u7d20\u300d\uff08\u4f55\u5217\u76ee\u3067\u3082\uff09 *\/\n&amp;:last-child {\n  border-bottom: none;\n}\n\/* \u300c\u6700\u5f8c\u304b\u30892\u3064\u76ee\u300d\u304b\u3064\u300c1\u5217\u76ee\u307e\u305f\u306f2\u5217\u76ee\u300d *\/\n&amp;:nth-last-child(2):not(:nth-child(3n)) {\n  border-bottom: none;\n}\n\/* \u300c\u6700\u5f8c\u304b\u30893\u3064\u76ee\u300d\u304b\u3064\u300c1\u5217\u76ee\u300d *\/\n&amp;:nth-last-child(3):nth-child(3n-2) {\n  border-bottom: none;\n}<\/strong>\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u4ed5\u7d44\u307f\u306e\u89e3\u8aac\u3011<\/h3>\n\n\n\n<p>3\u3064\u306e\u8a18\u8ff0\u3067\u3001\u3059\u3079\u3066\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u5bfe\u5fdc\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u6700\u5f8c\u306e\u884c\u306e\u30dc\u30bf\u30f3\u6570<\/th><th>\u9069\u7528\u3055\u308c\u308bCSS<\/th><\/tr><\/thead><tbody><tr><td>1\u500b<\/td><td><code>last-child<\/code><\/td><\/tr><tr><td>2\u500b<\/td><td><code>last-child<\/code><br><code>nth-last-child(2):not(:nth-child(3n))<\/code><\/td><\/tr><tr><td>3\u500b<\/td><td><code>last-child<\/code><br><code>nth-last-child(2):not(:nth-child(3n))<\/code><br><code>nth-last-child(3):nth-child(3n-2)<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><br>\u3053\u306e\u4ed5\u7d44\u307f\u306b\u3088\u308a\u3001<strong>\u6700\u5f8c\u306e\u884c\u306e\u8981\u7d20\u6570\u304c\u3069\u3046\u306a\u3063\u3066\u3082\u3001\u8a72\u5f53\u306e\u3059\u3079\u3066\u306e\u30dc\u30bf\u30f3\u306b\u6b63\u78ba\u306b\u4e0b\u7dda\u306a\u3057\u3092\u9069\u7528<\/strong>\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u5217\u6570\u304c\u56fa\u5b9a\u3055\u308c\u3066\u3044\u3066\u3001\u30dc\u30bf\u30f3\u306e\u6570\u304c\u4e0d\u5b9a\u306e\u5834\u5408\u3001\u5b89\u5168\u306b\u6700\u5f8c\u306e\u884c\u3060\u3051\u4e0b\u7dda\u3092\u6d88\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br>\u3053\u306e\u65b9\u6cd5\u306fJavaScript\u3092\u4f7f\u308f\u305a\u306bCSS\u3060\u3051\u3067\u5b8c\u7d50\u3067\u304d\u307e\u3059\u3002<br>\u4ed6\u306e\u5217\u6570\u3067\u3082\u3001\u540c\u69d8\u306e\u8003\u3048\u65b9\u3067\u5b9f\u73fe\u3067\u304d\u308b\u306e\u3067\u3001\u305c\u3072\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS\u3060\u3051\u3067\u8907\u6570\u30ab\u30e9\u30e0\u306e\u30dc\u30bf\u30f3\u3084\u8981\u7d20\u3092\u4e26\u3079\u305f\u969b\u3001\u6700\u5f8c\u306e\u884c\u3060\u3051\u4e0b\u7dda\u3092\u6d88\u3059\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002\u5217\u6570\u56fa\u5b9a\u30fb\u8981\u7d20\u6570\u4e0d\u5b9a\u3067\u3082\u6b63\u78ba\u306b\u9069\u7528\u3067\u304d\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3001JavaScript\u4e0d\u8981\u30023\u5217\u30b0\u30ea\u30c3\u30c9\u3084\u30d5\u30ec\u30c3\u30af\u30b9\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3082\u4f7f\u3048\u308b\u3001\u30e2\u30c0\u30f3\u306aUI\u5411\u3051\u306e\u30c7\u30b6\u30a4\u30f3\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n","protected":false},"author":47,"featured_media":17729,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[174,173],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=\/wp\/v2\/posts\/17654"}],"collection":[{"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17654"}],"version-history":[{"count":3,"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=\/wp\/v2\/posts\/17654\/revisions"}],"predecessor-version":[{"id":17739,"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=\/wp\/v2\/posts\/17654\/revisions\/17739"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=\/wp\/v2\/media\/17729"}],"wp:attachment":[{"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nxpg.net\/blog\/tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}