{"id":68,"date":"2014-02-14T17:58:52","date_gmt":"2014-02-14T08:58:52","guid":{"rendered":"http:\/\/css.programming.jp\/?p=68"},"modified":"2015-02-27T17:37:11","modified_gmt":"2015-02-27T08:37:11","slug":"%e6%8b%a1%e5%a4%a7%e7%a7%bb%e5%8b%95%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/css.programming.jp\/?p=68","title":{"rendered":"\u540c\u6642\u79fb\u52d5\u62e1\u5927\u578b\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc"},"content":{"rendered":"<p>\u753b\u9762\u4e0b\u90e8\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u305d\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u62e1\u5927\u3057\u306a\u304c\u3089\u79fb\u52d5\u3057\u3001\u753b\u9762\u4e2d\u592e\u306b\u5199\u771f\u304c\u8868\u793a\u3055\u308c\u308b\u30bf\u30a4\u30d7\u306e\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc\u3067\u3042\u308b\u3002<br \/>\ncss\u306etransition\u3067\u3001left\u3001top\u3001width\u3001height\u306e\u5024\u3092\u5909\u5316\u3055\u305b\u3066\u3044\u308b\u3002\u4e0b\u90e8\u306b\u914d\u7f6e\u3057\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u306f\u3001\u5927\u304d\u306a\u30b5\u30a4\u30ba\u306e\u8868\u793a\u5199\u771f\u3092\u30b5\u30a4\u30ba\u30c0\u30a6\u30f3\u3057\u3066\u4e26\u3079\u3066\u3044\u308b\u3002<\/p>\n<h4>\u30b5\u30f3\u30d7\u30eb<\/h4>\n<p><!-- \u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528HTML\u3001CSS\u3053\u3053\u304b\u3089 --><\/p>\n<div id=\"stage\">\n  <input type=\"radio\" id=\"r1\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r2\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r3\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r4\" name=\"gal\"><br \/>\n  <input type=\"radio\" id=\"r5\" name=\"gal\"><\/p>\n<div id=\"screen\"><span id=\"title\">\u91dd\u30ce\u6728\u5cb3\u304b\u3089\u723a\u30f6\u5cb3\u3078\u306e\u7e26\u8d70\u8def\u306b\u3066<\/span><\/div>\n<div id=\"photo1\"><label for=\"r1\"><img decoding=\"async\" src=\"wp-images\/1.jpg\"><\/label><\/div>\n<div id=\"photo2\"><label for=\"r2\"><img decoding=\"async\" src=\"wp-images\/2.jpg\"><\/label><\/div>\n<div id=\"photo3\"><label for=\"r3\"><img decoding=\"async\" src=\"wp-images\/3.jpg\"><\/label><\/div>\n<div id=\"photo4\"><label for=\"r4\"><img decoding=\"async\" src=\"wp-images\/4.jpg\"><\/label><\/div>\n<div id=\"photo5\"><label for=\"r5\"><img decoding=\"async\" src=\"wp-images\/5.jpg\"><\/label><\/div>\n<\/div>\n<style type=\"text\/css\">\n\/*\u30ae\u30e3\u30e9\u30ea\u30fc\u5168\u4f53\u306e\u30b3\u30f3\u30c6\u30ca\u30fc*\/\n#stage {\n\tposition: relative;\n\twidth: 660px;\n\theight: 440px;\n\tmargin: 0 auto;\n}\n\/*\u521d\u671f\u753b\u9762*\/\n#screen {\n\tposition: absolute;\n\tleft: 30px;\n\ttop: 10px;\n\twidth: 600px;\n\theight: 338px;\n\tbackground-color: #CCC;\n}\n\/*\u521d\u671f\u753b\u9762\u4e0a\u306e\u6587\u5b57*\/\n#screen span {\n\tposition:absolute;\n\ttop:130px;\n\tleft:50px;\n\tfont-size:32px;\n}\n\/*\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3092\u975e\u8868\u793a\u306b*\/\n#r1, #r2, #r3, #r4, #r5 {\n\tdisplay: none;\n}\n\/*\u8868\u793a\u5199\u771f\u7528div\u3092\u753b\u9762\u4e0b\u90e8\u306b125px\u9593\u9694\u3067\u30b5\u30e0\u30cd\u30a4\u30eb\u3068\u3057\u3066\u4e00\u5217\u306b\u4e26\u3079\u308b*\/\n#photo1,#photo2,#photo3,#photo4,#photo5 {\n\tposition:absolute;\n\ttop:360px;\n\tfloat:left;\n\t-webkit-transition: all 1s ease;\n\t-moz-transition: all 1s ease;\n\t-o-transition: all 1s ease;\n\ttransition: all 1s ease;\n}\n#photo1 {left:20px;}\n#photo2 {left:145px;}\n#photo3 {left:270px;}\n#photo4 {left:395px;}\n#photo5 {left:520px;}\n\/*\u5199\u771f\u3092\u30b5\u30e0\u30cd\u30a4\u30eb\u30b5\u30a4\u30ba\u306b\u3057\u3001transition\u3092\u30bb\u30c3\u30c8*\/\n#photo1 img,#photo2 img,#photo3 img,#photo4 img,#photo5 img {\n\twidth:120px;\n\theight:68px;\n\tcursor: pointer;\n\t-webkit-transition: all 1s ease;\n\t-moz-transition: all 1s ease;\n\t-o-transition: all 1s ease;\n\ttransition: all 1s ease;\n}\n\/*\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3089\u3001\u8a72\u5f53\u3059\u308b\u5199\u771f\u306e\u5927\u304d\u3055\u3092\u5143\u306e\u30b5\u30a4\u30ba\u306b\u62e1\u5927\u3059\u308b*\/\n#r1:checked ~ #photo1 img,#r2:checked ~ #photo2 img,#r3:checked ~ #photo3 img,#r4:checked ~ #photo4 img,#r5:checked ~ #photo5 img {\n\twidth:600px;\n\theight:338px;\n}\n\/*\u30af\u30ea\u30c3\u30af\u306b\u8a72\u5f53\u3059\u308b\u5199\u771f\u304c\u753b\u9762\u4e2d\u592e\u306b\u304f\u308b\u3088\u3046\u306b\u3059\u308b*\/\n#r1:checked ~ #photo1,#r2:checked ~ #photo2,#r3:checked ~ #photo3,#r4:checked ~ #photo4,#r5:checked ~ #photo5 {\n\tposition:absolute;\n\tleft:30px;\n\ttop:10px;\n}\n\/*\u3044\u305a\u308c\u304b\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3089\u3001\u80cc\u666f\u306e\u6587\u5b57\u3092\u975e\u8868\u793a\u306b\u3059\u308b*\/\n#r1:checked ~ #screen span, #r2:checked ~ #screen span, #r3:checked ~ #screen span, #r4:checked ~ #screen span, #r5:checked ~ #screen span {\n\topacity: 0;\n}\n<\/style>\n<p><!-- \u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528HTML,CSS\u3053\u3053\u307e\u3067 --><\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528HTML<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;stage&quot;&gt;\r\n  &lt;input type=&quot;radio&quot; id=&quot;r1&quot; name=&quot;gal&quot;&gt;\r\n  &lt;input type=&quot;radio&quot; id=&quot;r2&quot; name=&quot;gal&quot;&gt;\r\n  &lt;input type=&quot;radio&quot; id=&quot;r3&quot; name=&quot;gal&quot;&gt;\r\n  &lt;input type=&quot;radio&quot; id=&quot;r4&quot; name=&quot;gal&quot;&gt;\r\n  &lt;input type=&quot;radio&quot; id=&quot;r5&quot; name=&quot;gal&quot;&gt;\r\n  &lt;div id=&quot;screen&quot;&gt;&lt;span id=&quot;title&quot;&gt;\u91dd\u30ce\u6728\u5cb3\u304b\u3089\u723a\u30f6\u5cb3\u3078\u306e\u7e26\u8d70\u8def\u306b\u3066&lt;\/span&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo1&quot;&gt;&lt;label for=&quot;r1&quot;&gt;&lt;img src=&quot;wp-images\/1.jpg&quot;&gt;&lt;\/label&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo2&quot;&gt;&lt;label for=&quot;r2&quot;&gt;&lt;img src=&quot;wp-images\/2.jpg&quot;&gt;&lt;\/label&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo3&quot;&gt;&lt;label for=&quot;r3&quot;&gt;&lt;img src=&quot;wp-images\/3.jpg&quot;&gt;&lt;\/label&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo4&quot;&gt;&lt;label for=&quot;r4&quot;&gt;&lt;img src=&quot;wp-images\/4.jpg&quot;&gt;&lt;\/label&gt;&lt;\/div&gt;\r\n  &lt;div id=&quot;photo5&quot;&gt;&lt;label for=&quot;r5&quot;&gt;&lt;img src=&quot;wp-images\/5.jpg&quot;&gt;&lt;\/label&gt;&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h4>HTML\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u914d\u7f6e\u307e\u3067\u306f\u3001\u524d\u9805\u307e\u3067\u306eHTML\u3068\u540c\u3058\u3002<br \/>\n\u30fb\u753b\u9762\u4e0b\u306b\u914d\u7f6e\u3059\u308b\u30b5\u30e0\u30cd\u30a4\u30eb\u306f\u3001\u8868\u793a\u5199\u771f\u3092css\u3067\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3057\u3066\u4e26\u3079\u308b\u3002<\/p>\n<h4>\u672c\u30b5\u30f3\u30d7\u30eb\u8868\u793a\u7528CSS<\/h4>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n\/*\u30ae\u30e3\u30e9\u30ea\u30fc\u5168\u4f53\u306e\u30b3\u30f3\u30c6\u30ca\u30fc*\/\r\n#stage {\r\n\tposition: relative;\r\n\twidth: 660px;\r\n\theight: 440px;\r\n\tmargin: 0 auto;\r\n}\r\n\/*\u521d\u671f\u753b\u9762*\/\r\n#screen {\r\n\tposition: absolute;\r\n\tleft: 30px;\r\n\ttop: 10px;\r\n\twidth: 600px;\r\n\theight: 338px;\r\n\tbackground-color: #CCC;\r\n}\r\n\/*\u521d\u671f\u753b\u9762\u4e0a\u306e\u6587\u5b57*\/\r\n#screen span {\r\n\tposition:absolute;\r\n\ttop:130px;\r\n\tleft:50px;\r\n\tfont-size:32px;\r\n}\r\n\/*\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3092\u975e\u8868\u793a\u306b*\/\r\n#r1, #r2, #r3, #r4, #r5 {\r\n\tdisplay: none;\r\n}\r\n\/*\u8868\u793a\u5199\u771f\u7528div\u3092\u753b\u9762\u4e0b\u90e8\u306b125px\u9593\u9694\u3067\u30b5\u30e0\u30cd\u30a4\u30eb\u3068\u3057\u3066\u4e00\u5217\u306b\u4e26\u3079\u308b*\/\r\n#photo1,#photo2,#photo3,#photo4,#photo5 {\r\n\tposition:absolute;\r\n\ttop:360px;\r\n\tfloat:left;\r\n\t-webkit-transition: all 1s ease;\r\n\t-moz-transition: all 1s ease;\r\n\t-o-transition: all 1s ease;\r\n\ttransition: all 1s ease;\r\n}\r\n#photo1 {left:20px;}\r\n#photo2 {left:145px;}\r\n#photo3 {left:270px;}\r\n#photo4 {left:395px;}\r\n#photo5 {left:520px;}\r\n\/*\u5199\u771f\u3092\u30b5\u30e0\u30cd\u30a4\u30eb\u30b5\u30a4\u30ba\u306b\u3057\u3001transition\u3092\u30bb\u30c3\u30c8*\/\r\n#photo1 img,#photo2 img,#photo3 img,#photo4 img,#photo5 img {\r\n\twidth:120px;\r\n\theight:68px;\r\n\tcursor: pointer;\r\n\t-webkit-transition: all 1s ease;\r\n\t-moz-transition: all 1s ease;\r\n\t-o-transition: all 1s ease;\r\n\ttransition: all 1s ease;\r\n}\r\n\/*\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3089\u3001\u8a72\u5f53\u3059\u308b\u5199\u771f\u306e\u5927\u304d\u3055\u3092\u5143\u306e\u30b5\u30a4\u30ba\u306b\u62e1\u5927\u3059\u308b*\/\r\n#r1:checked ~ #photo1 img,#r2:checked ~ #photo2 img,#r3:checked ~ #photo3 img,#r4:checked ~ #photo4 img,#r5:checked ~ #photo5 img {\r\n\twidth:600px;\r\n\theight:338px;\r\n}\r\n\/*\u30af\u30ea\u30c3\u30af\u306b\u8a72\u5f53\u3059\u308b\u5199\u771f\u304c\u753b\u9762\u4e2d\u592e\u306b\u304f\u308b\u3088\u3046\u306b\u3059\u308b*\/\r\n#r1:checked ~ #photo1,#r2:checked ~ #photo2,#r3:checked ~ #photo3,#r4:checked ~ #photo4,#r5:checked ~ #photo5 {\r\n\tposition:absolute;\r\n\tleft:30px;\r\n\ttop:10px;\r\n}\r\n\/*\u3044\u305a\u308c\u304b\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3089\u3001\u80cc\u666f\u306e\u6587\u5b57\u3092\u975e\u8868\u793a\u306b\u3059\u308b*\/\r\n#r1:checked ~ #screen span, #r2:checked ~ #screen span, #r3:checked ~ #screen span, #r4:checked ~ #screen span, #r5:checked ~ #screen span {\r\n\topacity: 0;\r\n}\r\n<\/pre>\n<h4>CSS\u306e\u30dd\u30a4\u30f3\u30c8\u8aac\u660e<\/h4>\n<p>\u30fb\u5199\u771f\u683c\u7d0d\u7528div\uff08#photo1,,,,#photo5\uff09\u3092\u753b\u9762\u4e0b\u90e8\u306b125px\u9593\u9694\u306b\u4e26\u3079\u308b\u3002<br \/>\n\u30fb\u521d\u671f\u306e\u5199\u771f\uff08#photo1 img,,,,\uff09\u30b5\u30a4\u30ba\u3092\u30b5\u30e0\u30cd\u30a4\u30eb\u30b5\u30a4\u30ba\u306b\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u30fb\u5199\u771f\u683c\u7d0d\u7528div\u306b\u3001\u79fb\u52d5\u306etransition\uff08left,top\uff09\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u30fb\u521d\u671f\u306e\u5199\u771f\u306b\u3001\u62e1\u5927\u306etransition\uff08width,height\uff09\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<div class=\"ninja_onebutton\">\n<script type=\"text\/javascript\">\n\/\/<![CDATA[\n(function(d){\nif(typeof(window.NINJA_CO_JP_ONETAG_BUTTON_63425606c23ff308dc3d676e4f432981)=='undefined'){\n    document.write(\"<sc\"+\"ript type='text\\\/javascript' src='http:\\\/\\\/omt.shinobi.jp\\\/b\\\/63425606c23ff308dc3d676e4f432981'><\\\/sc\"+\"ript>\");\n}else{\n    window.NINJA_CO_JP_ONETAG_BUTTON_63425606c23ff308dc3d676e4f432981.ONETAGButton_Load();}\n})(document);\n\/\/]]>\n<\/script><span class=\"ninja_onebutton_hidden\" style=\"display:none;\"><?php the_permalink(); ?><\/span><span style=\"display:none;\" class=\"ninja_onebutton_hidden\"><?php the_title(); ?><\/span>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u753b\u9762\u4e0b\u90e8\u306b\u914d\u7f6e\u3055\u308c\u305f\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u305d\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u304c\u62e1\u5927\u3057\u306a\u304c\u3089\u79fb\u52d5\u3057\u3001\u753b\u9762\u4e2d\u592e\u306b\u5199\u771f\u304c\u8868\u793a\u3055\u308c\u308b\u30bf\u30a4\u30d7\u306e\u30d5\u30a9\u30c8\u30ae\u30e3\u30e9\u30ea\u30fc\u3067\u3042\u308b\u3002 css\u306etransition\u3067\u3001left\u3001top\u3001width\u3001height\u306e &hellip; <a class=\"more-link\" href=\"https:\/\/css.programming.jp\/?p=68\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=68"}],"version-history":[{"count":12,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":822,"href":"https:\/\/css.programming.jp\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions\/822"}],"wp:attachment":[{"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css.programming.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}