{"id":2057,"date":"2015-07-29T10:32:43","date_gmt":"2015-07-29T01:32:43","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=2057"},"modified":"2015-07-29T10:44:07","modified_gmt":"2015-07-29T01:44:07","slug":"%e3%83%ac%e3%82%b9%e3%83%9d%e3%83%b3%e3%82%b7%e3%83%96%e3%81%ae%e3%82%b0%e3%83%aa%e3%83%83%e3%83%89%e3%83%ac%e3%82%a4%e3%82%a2%e3%82%a6%e3%83%88%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%8f%e3%82%8c","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=2057","title":{"rendered":"\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300cMasonry\u300d"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#jQueryMasonry\"><span class=\"toc_number toc_depth_1\">1<\/span> jQuery\u4e0d\u8981\uff01\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300cMasonry\u300d<\/a><\/li><li><a href=\"#Masonry\"><span class=\"toc_number toc_depth_1\">2<\/span> Masonry\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30a4\u30c8\u4f8b<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">3<\/span> \u4f7f\u3044\u65b9<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">4<\/span> \uff11.\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">5<\/span> \uff12.\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8aad\u307f\u8fbc\u3080<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_1\">6<\/span> \uff13.\u753b\u50cf\u3092\u914d\u7f6e<\/a><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_1\">7<\/span> \u25a0\u5404\u7a2e\u30aa\u30d7\u30b7\u30e7\u30f3<\/a><\/li><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_1\">8<\/span> \u25a0\u3069\u3046\u3057\u3066\u3082\u3059\u304d\u9593\u304c\u3067\u304d\u3066\u3057\u307e\u3046\uff01\u3068\u3044\u3046\u5834\u5408\u306e\u30aa\u30b9\u30b9\u30e1\u5bfe\u51e6\u6cd5<\/a><\/li><\/ul><\/div>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"jQueryMasonry\">jQuery\u4e0d\u8981\uff01\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300cMasonry\u300d<\/span><\/h2>\n<p>\u8907\u6570\u306e\u30dc\u30c3\u30af\u30b9\u3092\u30bf\u30a4\u30eb\u72b6\u306b\u4e26\u3079\u308b\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3002\u3053\u308c\u3092\u3001\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300cMasonry\u300d\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u30b5\u30a4\u30ba\u306e\u7570\u306a\u308b\u753b\u50cf\u3082\u3001\u3067\u304d\u308b\u304b\u304e\u308a\u3059\u304d\u9593\u304c\u306a\u304f\u306a\u308b\u3088\u3046\u306b\u81ea\u52d5\u3067\u6574\u5217\u3055\u305b\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u306e\u3067\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u3082\u5bfe\u5fdc\u3002\u753b\u9762\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u305f\u3073\u306b\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u6574\u5217\u3057\u306a\u304a\u3057\u307e\u3059\u3002<br \/>\n\u30e9\u30a4\u30bb\u30f3\u30b9\u306fMit Lisence\u3002<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"Masonry\">Masonry\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30a4\u30c8\u4f8b<\/span><\/h2>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/07\/017.jpg\" alt=\"Masonry\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30a4\u30c8\u4f8b\" \/><\/p>\n<p><a href=\"http:\/\/tympanus.net\/Development\/GridLoadingEffects\/index4.html\" target=\"_blank\">http:\/\/tympanus.net\/Development\/GridLoadingEffects\/index4.html<\/a><\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i\">\u4f7f\u3044\u65b9<\/span><\/h2>\n<h2 style=\"color: #0083b9;\"><span id=\"i-2\">\uff11.\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span><\/h2>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/07\/027.jpg\" alt=\"\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\" \/><\/p>\n<p><a href=\"http:\/\/masonry.desandro.com\/\" target=\"_blank\">http:\/\/masonry.desandro.com\/<\/a><\/p>\n<p>\u53f3\u4e0a\u306e\u300cDownload masonry.pkgd.min.js\u300d\u30dc\u30bf\u30f3\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<br \/>\n\u666e\u901a\u306b\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30bd\u30fc\u30b9\u304c\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u53f3\u30af\u30ea\u30c3\u30af\u3067\u30ea\u30f3\u30af\u5148\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"i-3\">\uff12.\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8aad\u307f\u8fbc\u3080<\/span><\/h2>\n<p>\u4fdd\u5b58\u5148\u306e\u30d1\u30b9\u306b\u5408\u308f\u305b\u3001head\u30bf\u30b0\u5185\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/07\/027.jpg\" alt=\"\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\" \/><\/p>\n<p>\u4f8b\uff1a<\/p>\n<pre>\r\n<xmp>\r\n<script src=\"js\/masonry.pkgd.min.js\"><\/script>\r\n<\/xmp>\r\n<\/pre>\n<h2 style=\"color: #0083b9;\"><span id=\"i-4\">\uff13.\u753b\u50cf\u3092\u914d\u7f6e<\/span><\/h2>\n<p>\u753b\u50cf\u3084\u30dc\u30c3\u30af\u30b9\u306f\u3001\u4e00\u3064\u3072\u3068\u3064<\/p>\n<pre>\r\n<xmp>\r\n<div class=\"item\">\r\n<\/xmp>\r\n<\/pre>\n<p>\u3067\u56f2\u307f\u307e\u3059\u3002<br \/>\n\u3055\u3089\u306b\u3001\u305d\u308c\u3089\u306e\u30dc\u30c3\u30af\u30b9\u3092<\/p>\n<pre>\r\n<div class=\"js-masonry\">\r\n<\/xmp>\r\n<\/pre>\n<p>\u3067\u3072\u3068\u307e\u3068\u3081\u306b\u56f2\u307f\u307e\u3059\u3002<\/p>\n<p>\u4f8b\uff1a<\/p>\n<pre>\r\n<xmp>\r\n<div class=\"js-masonry\">\r\n<div class=\"item\"><img decoding=\"async\" src=\"image\/01.jpg\"  alt=\"\"\/><\/div>\r\n<div class=\"item\"><img decoding=\"async\" src=\"image\/02.jpg\"  alt=\"\"\/><\/div>\r\n<div class=\"item\"><img decoding=\"async\" src=\"image\/03.jpg\"  alt=\"\"\/><\/div>\r\n<div class=\"item\"><img decoding=\"async\" src=\"image\/04.jpg\"  alt=\"\"\/><\/div>\r\n<div class=\"item\"><img decoding=\"async\" src=\"image\/05.jpg\"  alt=\"\"\/><\/div>\r\n<\/div>\r\n<\/xmp>\r\n<\/pre>\n<p>\u4f5c\u696d\u306f\u3053\u308c\u3060\u3051\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/07\/036.jpg\" alt=\"\u8a2d\u7f6e\u4f8b\uff11\" \/><\/p>\n<p>\u305f\u3063\u305f\u6570\u30b9\u30c6\u30c3\u30d7\u3067\u3001\u304d\u308c\u3044\u306b\u6574\u5217\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3082\u3061\u308d\u3093\u3001\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3082\u6574\u5217\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/07\/046.jpg\" alt=\"\u8a2d\u7f6e\u4f8b\uff12\" \/><\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i-5\">\u25a0\u5404\u7a2e\u30aa\u30d7\u30b7\u30e7\u30f3<\/span><\/h2>\n<p>\u5916\u5074\u306ediv\u8981\u7d20\u306b\u300cdata-masonry-options\u300d\u5c5e\u6027\u3092\u52a0\u3048\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\uff0acolumnWidth\u2026<br \/>\n\u30dc\u30c3\u30af\u30b9\u306e\u6a2a\u5e45\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002&#8221;columnWidth&#8221;: 200\u3000\u306a\u3069\u3002\u5358\u4f4d\u306f\u30d4\u30af\u30bb\u30eb\u3067\u3059\u3002<\/p>\n<p>\uff0aitemSelector\u2026<br \/>\n\u30bf\u30a4\u30eb\u72b6\u306b\u4e26\u3079\u308b\u30dc\u30c3\u30af\u30b9\u306eclass\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u305d\u306eclass\u306e\u307f\u304c\u6574\u5217\u306e\u5bfe\u8c61\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n&#8220;itemSelector&#8221;: &#8220;.item&#8221;\u306e\u3088\u3046\u306b\u3001\u30c9\u30c3\u30c8\u3092\u5165\u308c\u3066\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\uff0a&#8221;isFitWidth&#8221;: true\u2026<br \/>\n&#8220;isFitWidth&#8221;: true\u3067\u30b0\u30ea\u30c3\u30c9\u3092\u4e2d\u592e\u5bc4\u305b\u306b\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u3053\u306e\u6307\u5b9a\u306b\u52a0\u3048\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5916\u5074\u306ediv\u306b\u5bfe\u3057\u3066\u3082\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n<xmp>\r\n.js-masonry {\r\n  margin: 0 auto 0 auto;\r\n}\r\n<\/xmp>\r\n<\/pre>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i-6\">\u25a0\u3069\u3046\u3057\u3066\u3082\u3059\u304d\u9593\u304c\u3067\u304d\u3066\u3057\u307e\u3046\uff01\u3068\u3044\u3046\u5834\u5408\u306e\u30aa\u30b9\u30b9\u30e1\u5bfe\u51e6\u6cd5<\/span><\/h2>\n<p>Masonry\u306f\u3001\u30b5\u30a4\u30ba\u306e\u7570\u306a\u308b\u753b\u50cf\u3082\u300c\u3067\u304d\u308b\u304b\u304e\u308a\u300d\u3059\u304d\u9593\u306a\u304f\u4e26\u3079\u3066\u304f\u308c\u307e\u3059\u3002\u3067\u3059\u304c\u3001\u30b5\u30a4\u30ba\u304c\u5408\u308f\u306a\u3044\u90e8\u5206\u306f\u3059\u304d\u9593\u304c\u7a7a\u3044\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u3059\u304d\u9593\u306a\u304f\u304d\u3063\u3061\u308a\u5408\u308f\u305b\u305f\u3044\u5834\u5408\u306f\u3001\u753b\u50cf\u30b5\u30a4\u30ba\u3068\u30dc\u30c3\u30af\u30b9\u30b5\u30a4\u30ba\u3092\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3067\u6307\u5b9a\u3057\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u624b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<\/p>\n<pre>\r\n<xmp>\r\n.item{width:300px;}\r\n.item2{width:100px;}\r\n.item img{width:300px;}\r\n.item2 img{width:100px;}\r\n<\/xmp>\r\n<\/pre>\n<p>item\u306f\u901a\u5e38\u306e\u30dc\u30c3\u30af\u30b9\u30b5\u30a4\u30ba\u3001item2\u306f\u305d\u306e\uff13\u5206\u306e\u4e00\u306e\u30dc\u30c3\u30af\u30b9\u30b5\u30a4\u30ba\u306b\u6307\u5b9a\u3002<br \/>\nitem\u306e\u753b\u50cf\u4e00\u679a\u5206\u306b\u5bfe\u3057\u3001item2\u304c\uff13\u679a\u6a2a\u4e26\u3073\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nhtml\u3067\u3053\u306e\u30af\u30e9\u30b9\u540d\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001\u5b9f\u969b\u306e\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u306b\u95a2\u4fc2\u306a\u304f\u3001\u3053\u306e\u6a2a\u5e45\u3067\u51fa\u529b\u3055\u308c\u308b\u306e\u3067\u3001\u304d\u308c\u3044\u306b\u6574\u5217\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300cMasonry\u300d\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u591a\u304f\u306e\u4f01\u696d\u30b5\u30a4\u30c8\u3067\u3082\u4f7f\u308f\u308c\u3066\u3044\u308b\u512a\u308c\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u306e\u3067\u3001\u305c\u3072\u3001\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 jQuery\u4e0d\u8981\uff01\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306e\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300cMasonry\u300d2 Masonry\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30a4\u30c8\u4f8b3 \u4f7f\u3044\u65b94 \uff11.\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c95 \uff12.\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8aad\u307f\u8fbc\u30806 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2055,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,28,45],"tags":[],"class_list":["post-2057","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","category-seo","category-web"],"_links":{"self":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2057","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=2057"}],"version-history":[{"count":3,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2057\/revisions"}],"predecessor-version":[{"id":2060,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2057\/revisions\/2060"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/2055"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}