{"id":1715,"date":"2015-03-22T13:15:21","date_gmt":"2015-03-22T04:15:21","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=1715"},"modified":"2015-03-22T13:15:21","modified_gmt":"2015-03-22T04:15:21","slug":"%e3%80%90css%e3%80%91%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%82%92%e4%bd%bf%e3%82%8f%e3%81%9a%e3%80%81css%e3%81%a0%e3%81%91%e3%81%a7%e6%89%8b%e8%bb%bd%e3%81%ab%e9%80%a3%e7%95%aa%e3%82%92","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=1715","title":{"rendered":"\u3010CSS\u3011\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u305a\u3001CSS\u3060\u3051\u3067\u624b\u8efd\u306b\u9023\u756a\u3092\u632f\u308b\u65b9\u6cd5"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#CSSCSS\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010CSS\u3011\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u305a\u3001CSS\u3060\u3051\u3067\u624b\u8efd\u306b\u9023\u756a\u3092\u632f\u308b\u65b9\u6cd5<\/a><\/li><li><a href=\"#counter-reset\"><span class=\"toc_number toc_depth_1\">2<\/span> counter-reset\u3063\u3066\u4f55\uff1f<\/a><\/li><li><a href=\"#counter-increment\"><span class=\"toc_number toc_depth_1\">3<\/span> counter-increment\u3063\u3066\u4f55\uff1f<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">4<\/span> \u4f7f\u3044\u65b9<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">5<\/span> \u3082\u3063\u3068\u4fbf\u5229\u306a\u4f7f\u3044\u65b9<\/a><\/li><\/ul><\/div>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"CSSCSS\">\u3010CSS\u3011\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u305a\u3001CSS\u3060\u3051\u3067\u624b\u8efd\u306b\u9023\u756a\u3092\u632f\u308b\u65b9\u6cd5<\/span><\/h2>\n<p>\u8868\u3084\u30ea\u30b9\u30c8\u306b\u9806\u756a\u306b\u9023\u756a\u3092\u632f\u308a\u305f\u3044\u3068\u304d\u3001Javascript\u3067\u3082\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3082\u3063\u3068\u624b\u8efd\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nCSS\u306e\u300ccounter-reset\u300d\u3068\u300ccounter-increment\u300d\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001CSS\u306e\u307f\u3067\uff11\u305a\u3064\u6570\u5b57\u3092\u5897\u3084\u3057\u3066\u3044\u304f\u3001\u3068\u3044\u3046\u51e6\u7406\u304c\u3067\u304d\u308b\u3082\u306e\u3002CSS2\u304b\u3089\u3059\u3067\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3042\u307e\u308a\u6d3b\u7528\u3057\u3066\u3044\u306a\u3044\u65b9\u3082\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u3053\u306e\u4fbf\u5229\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 <\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"counter-reset\">counter-reset\u3063\u3066\u4f55\uff1f<\/span><\/h2>\n<p>\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30a6\u30f3\u30bf\u306e\u5024\u3092\u30ea\u30bb\u30c3\u30c8\u3002\u30bc\u30ed\u306b\u3057\u307e\u3059\u3002<br \/>\n\u8a18\u8ff0\u3092\u7701\u7565\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"counter-increment\">counter-increment\u3063\u3066\u4f55\uff1f<\/span><\/h2>\n<p>\u30ab\u30a6\u30f3\u30bf\u306b\u5024\u3092\uff11\u305a\u3064\u5897\u3084\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u52a0\u7b97\u3059\u308b\u5024\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i\">\u4f7f\u3044\u65b9<\/span><\/h2>\n<p>\u2460\u8868\u7d44\u3084\u30ea\u30b9\u30c8\u306a\u3069\u3001\u9023\u756a\u3092\u4f7f\u3044\u305f\u3044\u8981\u7d20\u306b\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u751f\u6210\u3055\u305b\u307e\u3059\u3002<br \/>\n\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u540d\u524d\u306f\u4efb\u610f\u3067\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u300cranking\u300d\u3068\u3044\u3046\u540d\u306e\u5909\u6570\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><strong>[HTML]<\/strong><\/p>\n<pre>\r\n<xmp>\r\n<table> \r\n<caption>\u8868\u306e\u30bf\u30a4\u30c8\u30eb<\/caption> \r\n<tr> <th>\u9806\u4f4d<\/th> <th>\u9805\u76ee<\/th> <th>\u9805\u76ee<\/th> <\/tr> \r\n<tr> <th class=\"rank\"><\/th> <td>\u50241<\/td> <td>\u5024\uff12<\/td> <\/tr> \r\n<!--\u7e70\u308a\u8fd4\u3059-->\r\n <\/table>\r\n<\/xmp>\r\n<\/pre>\n<p><strong><\/strong><\/p>\n<pre>\r\n<xmp>\r\ntable{ \t\r\ncounter-reset:ranking; \r\n} \r\n<\/xmp>\r\n<\/pre>\n<p>\u2461\u9023\u756a\u3092\u632f\u308a\u305f\u3044\u8981\u7d20\u306e\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u3092\u52a0\u7b97\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3068\u3001rank\u30af\u30e9\u30b9\u304c\u4ed8\u4e0e\u3055\u308c\u305fth\u8981\u7d20\u306b\uff11\u305a\u3064\u5024\u304c\u52a0\u7b97\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong><\/strong><\/p>\n<pre>\r\n<xmp>\r\ntable th.rank{ \t\r\ncounter-increment:ranking;\r\n} \r\n<\/xmp>\r\n<\/pre>\n<p>\u2462\u3053\u306e\u307e\u307e\u3067\u306f\u5024\u306f\u52a0\u7b97\u3055\u308c\u308b\u3082\u306e\u306e\u3001\u753b\u9762\u306b\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<br \/>\n\u30ab\u30a6\u30f3\u30bf\u5909\u6570\u306e\u5024\u3092\u7591\u4f3c\u8981\u7d20\u300cbefore\u300d\u306b\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre>\r\n<xmp>\r\ntable th:before{ \t\r\ncontent: counter(ranking) ; \r\n}\r\n<\/xmp>\r\n<\/pre>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i-2\">\u3082\u3063\u3068\u4fbf\u5229\u306a\u4f7f\u3044\u65b9<\/span><\/h2>\n<p>\u30fb\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u521d\u671f\u5024\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\n\uff0a100\u304b\u3089\u52a0\u7b97\u3092\u59cb\u3081\u308b\u5834\u5408<\/p>\n<pre>\r\n<xmp>\r\ntable{\r\ncounter-increment:ranking 100;\r\n}\r\n<\/xmp>\r\n<\/pre>\n<p>\u30fb\u52a0\u7b97\u3067\u306f\u306a\u304f\u3001\u6e1b\u7b97\u3059\u308b\u5834\u5408\u306f\u3001\u8ca0\u306e\u5024\u3092\u6307\u5b9a\u3059\u308b<\/p>\n<pre>\r\n<xmp>\r\ntable{\r\ncounter-increment:ranking -1;\r\n}\r\n<\/xmp>\r\n<\/pre>\n<p>\u30fb\u9023\u756a\u306e\u524d\u5f8c\u306b\u6587\u5b57\u3092\u52a0\u3048\u308b<\/p>\n<pre>\r\n<xmp>\r\ntable th.rank:before{ \t\r\ncontent: \"\u7b2c\" counter(ranking) \"\u4f4d\"; \r\n}\r\n<\/xmp>\r\n<\/pre>\n<p><a href=\"http:\/\/www.dream-net.org\/demo\/03.html\" target=\"_blank\">\u30b5\u30f3\u30d7\u30eb\u306f\u3053\u3061\u3089\u3002<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/03\/017.jpg\" \/><\/p>\n<p>\u8868\u7d44\u307f\u4ee5\u5916\u306b\u3001\u30ea\u30b9\u30c8\u3084\u898b\u51fa\u3057\u3067\u3082\u540c\u69d8\u306e\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u7c21\u5358\u306a\u9023\u756a\u306a\u3089\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3053\u308c\u3067\u5341\u5206\u3067\u3059\u306d\u3002<br \/>\n\u77e5\u3089\u306a\u304b\u3063\u305f\uff01\u3068\u3044\u3046\u65b9\u306f\u305c\u3072\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u3010CSS\u3011\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u305a\u3001CSS\u3060\u3051\u3067\u624b\u8efd\u306b\u9023\u756a\u3092\u632f\u308b\u65b9\u6cd52 counter-reset\u3063\u3066\u4f55\uff1f3 counter-increment\u3063\u3066\u4f55\uff1f4 \u4f7f\u3044\u65b95 \u3082\u3063\u3068\u4fbf\u5229\u306a\u4f7f\u3044\u65b9 \u3010CSS\u3011\u30b9\u30af\u30ea\u30d7\u30c8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1714,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,49,45],"tags":[],"class_list":["post-1715","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-jquery","category-web"],"_links":{"self":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1715"}],"version-history":[{"count":1,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1715\/revisions"}],"predecessor-version":[{"id":1716,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1715\/revisions\/1716"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/1714"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}