{"id":254,"date":"2012-10-28T17:43:41","date_gmt":"2012-10-28T09:43:41","guid":{"rendered":"http:\/\/www.bluesdream.com\/blog\/?p=254"},"modified":"2013-07-26T12:04:27","modified_gmt":"2013-07-26T04:04:27","slug":"ublue-jquery-waterfall","status":"publish","type":"post","link":"https:\/\/www.bluesdream.com\/blog\/ublue-jquery-waterfall.html","title":{"rendered":"Ublue jQuery Waterfall\uff08\u7011\u5e03\u6d41\u5f0f\u5e03\u5c40\uff09"},"content":{"rendered":"<p>\u5f15\u8a00\uff1a\u7011\u5e03\u6d41\u5f0f\u5e03\u5c40\uff08\u53c8\u540d\uff1a\u7011\u5e03\u56fe\u7247\u5899\uff09\uff0c\u800cPinterest\u5219\u662f\u8be5\u5e03\u5c40\u7684\u9f3b\u7956\u3002\u6700\u8be5\u5e03\u5c40\u5f62\u5f0f\u6700\u521d\u5728\u56fd\u5185\u9ed8\u9ed8\u65e0\u95fb\uff0c\u4f46\u968f\u7740\u8611\u83c7\u8857\u3001\u70b9\u70b9\u548c\u82b1\u74e3\u7f51\u7b49\u7b49\u7684\u5174\u8d77...\u8fd9\u6837\u7684\u5e03\u5c40\u65b9\u5f0f\u4e5f\u6e10\u6e10\u88ab\u4eba\u4eec\u6240\u719f\u77e5\u3002\u53ef\u80fd\u6709\u4eba\u4e0d\u7ecf\u610f\u8981\u95ee\uff0c\u4e3a\u4ec0\u4e48\u73b0\u5728\u8d8a\u6765\u8d8a\u591a\u7684\u7f51\u7ad9\u90fd\u8fd9\u6837\u6548\u4eff\u5462\uff1f\u6211\u4e2a\u4eba\u603b\u7ed3\u4e862\u70b9\uff1a\u9996\u5148\uff0c\u56fe\u7247+\u94fe\u63a5\u7684\u65b9\u5f0f\uff0c\u65b9\u4fbf\u4e86\u7528\u6237\u6d4f\u89c8\uff0c\u4e5f\u80fd\u6e05\u6670\u627e\u5230\u76f8\u5173\u5185\u5bb9\uff0c\u53ef\u8c13\u662f\u4e00\u76ee\u4e86\u7136\u3002\u5176\u6b21\uff0c\u770b\u4f3c\u6563\u4e71\u65e0\u5e8f\u7684\u788e\u7247\u5316\u5185\u5bb9\uff0c\u6709\u7740\u5f3a\u5927\u7684\u89c6\u89c9\u611f\u67d3\u529b\u3002\u7531\u4e8e\u5185\u5bb9\u968f\u673a\u548c\u4e0d\u786e\u5b9a\u6027\uff0c\u66f4\u80fd\u591f\u8bf1\u5bfc\u7528\u6237\u53cd\u590d\u67e5\u770b\uff0c\u6709\u65f6\u66f4\u50cf\u662f\u79cd\u201c\u63a2\u5b9d\u201d\u5e0c\u671b\u627e\u5230\u81ea\u5df1\u6240\u559c\u6b22\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u8bf4\u4e86\u4e00\u5806\u4ecb\u7ecd\uff0c\u5f00\u59cb\u8fdb\u5165\u6b63\u9898\u3002\u5176\u5b9e\uff0c\u8fd9\u4e2aDemo\u5f88\u65e9\u5c31\u5f00\u59cb\u5236\u4f5c\u4e86\uff0c\u7531\u4e8e\u79cd\u79cd\u539f\u56e0\uff0c\u4e00\u76f4\u6ca1\u80fd\u5199\u8fd9\u6587\u7ae0\u3002\u7531\u4e8e\u6700\u8fd1\u5728\u505a\u4e00\u4e2a\u9879\u76ee\uff0c\u9700\u8981\u7528\u5230\u8fd9\u4e2a\u5e03\u5c40\u65b9\u5f0f\uff0c\u4e5f\u6240\u8c13\u662f\u4e0d\u7528\u4e0d\u77e5\u9053\uff0c\u4e00\u7528\u624d\u77e5\u9053\uff0c\u770b\u4f3c\u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8fd8\u662f\u6709\u5f88\u591a\u95ee\u9898\u9700\u8981\u89e3\u51b3\u3002\u6240\u4ee5\uff0c\u8fb9\u505a\u9879\u76ee\u7684\u540c\u65f6\uff0c\u4e5f\u628aDemo\u4f18\u5316\u3001\u66f4\u65b0\u4e86\u4e0b\u3002<!--more--><\/p>\n<p>\u6211\u5199\u4ee3\u7801\u6709\u4e2a\u4e60\u60ef\uff0c\u8981\u4e48\u5c31\u662f\u628a\u4ee3\u7801\u6ce8\u4e0a\u76f8\u5bf9\u5bb9\u6613\u7406\u89e3\u7684\u8bf4\u660e\uff0c\u8981\u4e48\u5c31\u7d22\u6027\u4ec0\u4e48\u8bdd\u90fd\u522b\u8bf4\u3002\u5f53\u521d\u5728\u505a\u8fd9\u4e2aDemo\u7684\u65f6\u5019\uff0c\u7f51\u4e0a\u641c\u4e86\u5f88\u591a\u8d44\u6599\u3002\u90fd\u6ca1\u627e\u5230\u5177\u4f53\u7684\u5236\u4f5c\u65b9\u6cd5\uff0c\u56fd\u5185\u7684\u7f51\u7ad9\uff0c\u8981\u4e48\u5404\u79cd\u63d2\u4ef6\u8981\u4e48\u5404\u79cd\u5929\u4e66\u3002\u6211\u61c2\uff0c\u6211\u5c31\u4e0d\u4f1a\u53bb\u627e\u8d44\u6599\uff0c\u5c31\u662f\u56e0\u4e3a\u6211\u4e0d\u61c2\uff0c\u6240\u4ee5\u6211\u624d\u53bb\u5bfb\u627e\u201c\u771f\u76f8\u201d\u3002\u8fd9\u6b21\u7684\u4ee3\u7801\uff0c\u6211\u57fa\u672c\u90fd\u5199\u4e0a\u4e86\u6ce8\u91ca\u3002\u7531\u4e8e\u6211\u4e5f\u662f\u4ece\u4e00\u4e2a\u65b0\u624b\u4e00\u6b65\u6b65\u7684\u8fc7\u6765\uff0c\u6240\u4ee5\u5e94\u8be5\u4e5f\u80fd\u6613\u4e8e\u5176\u4ed6\u4eba\u7684\u7406\u89e3\u5427\u3002\u597d\u4e86\uff0c\u5e9f\u8bdd\u8bf4\u5b8c\uff0c\u5927\u5bb6\u770b\u4ee3\u7801\u5427\u3002<\/p>\n<p><strong>CSS CODE\uff1a<\/strong><\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n*{margin:0px; padding:0px;}\r\nbody{ font:12px\/20px  &quot;Electrolize&quot;,&quot;Microsoft YaHei&quot;,tahoma,Arial,sans-serif; color:#666; text-shadow:0 1px 0 #FFF; background:url(images\/body_bg.png);}\r\nul,ol,li{ list-style:none;}\r\na{ color:#666; text-decoration:none;}\r\na:hover img{ opacity:.9;}\r\n\r\n#waterfall{ margin:50px auto; position:relative;}\r\n.picList{ width:222px; box-shadow:0 0 3px #CCC; background:#FFF; margin:0 6px 12px 6px; position:absolute; display:block;}\r\n.picList:hover{ box-shadow:1px 1px 5px #BBB;}\r\n.picList:hover .shareIcon{ display:block;}\r\n.picList .shareIcon{ display:none; width:100px; height:24px; background:url(images\/share_icon.png) no-repeat; cursor:pointer; position:absolute; top:11px; right:11px; z-index:2; opacity:.9;}\r\n.picList .shareIcon:hover{ opacity:1;}\r\n.picThumbnail{ border-bottom:1px solid #EEE;}\r\n.picThumbnail a{ display:block; margin:11px; max-height:600px; overflow:hidden;}\r\n.picThumbnail img{ max-width:200px; display: block;}\r\n.picDescription{ padding:1px; text-align:center; padding:5px 10px; background:#F7F7F7; margin-top:1px;}\r\n<\/pre>\n<p><strong>JQUERY CODE\uff1a<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(function(){\r\n\t\/*!\r\n\t* Ublue jQuery Waterfall\r\n\t* Create 2012.02.21\r\n\t* Update 2012.10.18 ( 1.\u7531\u4e8e\u5185\u5bb9\u662fabsolute\u5c5e\u6027\uff0c\u5bfc\u81f4\u5143\u7d20\u504f\u79bb\u4e86\u6587\u6863\uff0c\u5d4c\u5165\u7f51\u9875\u65f6\u65e0\u6cd5\u6491\u5f00\u7236\u7ea7\u533a\u57df 2. \u6027\u80fd\u548c\u4ee3\u7801\u7ed3\u6784\u4f18\u5316 3.\u5df2\u77e5BUG\u4fee\u590d)\r\n\t* Copyright (c) 2011, \u68a6\u5e7b\u795e\u5316\r\n\t* http:\/\/www.bluesdream.com\r\n\t*\/\r\n\tfunction waterfall(){\r\n\t\tvar wfArea = $(&quot;#waterfall&quot;); \/\/\u663e\u793a\u533a\u57df\u540d\u79f0\r\n\t\tvar wfList = $(&quot;.picList&quot;); \/\/\u5185\u5bb9\u533a\u57df\u540d\u79f0\r\n\t\tvar wfWidth = wfList.outerWidth(true); \/\/\u83b7\u53d6\u5185\u5bb9\u533a\u57df\u5b9e\u9645\u5bbd\u5ea6\uff08\u542bMargin\u503c\uff09\r\n\t\tvar wfArr = new Array(); \/\/\u521b\u5efa\u6570\u7ec4\uff0c\u7528\u6765\u8bb0\u5f55\u5185\u5bb9\u533a\u57df\u9ad8\u5ea6\r\n\t\tvar maxCol = Math.floor( $(window).width() \/ wfWidth ); \/\/\u7a97\u53e3\u7684\u5bbd\u5ea6\u9664\u4ee5\u5185\u5bb9\u533a\u57df\u5bbd\u5ea6\uff0c\u5e76\u4e14\u5411\u4e0b\u53d6\u6574\uff08\u5f97\u51fa\u6bcf\u884c\u80fd\u653e\u591a\u5c11\u5217\uff09\r\n\t\tfor(var i = 0; i &lt; wfList.length; i++) { \/\/\u6839\u636e\u5185\u5bb9\u533a\u57df\u6570\u91cf\u8fdb\u884c\u5faa\u73af\r\n\t\t\tcolHeight = wfList.eq(i).outerHeight(true); \/\/\u83b7\u53d6\u6bcf\u4e2a\u5185\u5bb9\u533a\u57df\u7684\u9ad8\u5ea6\r\n\t\t\tif( i &lt; maxCol ){ \/\/\u5982\u679ci\u5c0f\u4e8emaxCol\uff0c\u90a3\u5c31\u8bf4\u660e\u662f\u5728\u4e00\u884c\u91cc\u9762\uff08\u4f8b\u5982\u6bcf\u884c\u67094\u5217\uff0c\u90a3\u5c31\u662f4\u4e2a\u4e3a\u4e00\u7ec4\uff09\r\n\t\t\t\twfArr&#x5B;i] = colHeight; \/\/\u628a\u6bcf\u7ec4\u5185\u5bb9\u533a\u57df\u7684\u9ad8\u5ea6\uff0c\u653e\u5165\u5230\u6570\u7ec4\u4e2d\r\n\t\t\t\twfList.eq(i).css(&quot;top&quot;,0); \/\/\u7b2c\u4e00\u884cLi\u7684\u9ed8\u8ba4Top\u503c\u4e3a0\r\n\t\t\t\twfList.eq(i).css(&quot;left&quot;,i * wfWidth); \/\/\u6bcf\u4e2a\u5217\u7684Left\u503c\u5c31\u662f\u5f53\u524d\u5217\u6570*\u5185\u5bb9\u533a\u57df\u5bbd\u5ea6\r\n\t\t\t}else{\r\n\t\t\t\tminHeight = Math.min.apply(null,wfArr); \/\/\u6bd4\u8f83\u6570\u503c\u4e2d\u7684\u503c\uff0c\u53d6\u5f97\u6700\u5c0f\u503c\uff08\u4e5f\u5c31\u662f\u6bcf\u884c\u4e2d\uff0c\u6700\u5c0f\u9ad8\u5ea6\uff09\r\n\t\t\t\tminCol = getArrayKey(wfArr, minHeight); \/\/\u6700\u5c0f\u7684\u503c\u5bf9\u5e94\u7684\u6307\u9488\r\n\t\t\t\twfArr&#x5B;minCol] += colHeight; \/\/\u52a0\u4e0a\u65b0\u9ad8\u5ea6\u540e\u66f4\u65b0\u9ad8\u5ea6\u503c\r\n\t\t\t\twfList.eq(i).css(&quot;top&quot;,minHeight); \/\/\u5148\u5f97\u5230\u9ad8\u5ea6\u6700\u5c0f\u7684Li\uff0c\u7136\u540e\u628a\u63a5\u4e0b\u6765\u7684li\u653e\u5230\u5b83\u7684\u4e0b\u9762\r\n\t\t\t\twfList.eq(i).css(&quot;left&quot;,minCol * wfWidth); \/\/\u7b2ci\u4e2a\u5217\u7684\u5de6\u5750\u6807\u5c31\u662fi*\u5217\u7684\u5bbd\u5ea6\r\n\t\t\t}\r\n\t\t\twfList.eq(i).attr('id',&quot;post_&quot;+i);\r\n\t\t};\r\n\t\tfunction getArrayKey(s, v) { \/\/\u4f7f\u7528for in\u8fd0\u7b97\u8fd4\u56de\u6570\u7ec4\u4e2d\u67d0\u4e00\u503c\u7684\u5bf9\u5e94\u9879\u6570(\u6bd4\u5982\u7b97\u51fa\u6700\u5c0f\u7684\u9ad8\u5ea6\u503c\u662f\u6570\u7ec4\u91cc\u9762\u7684\u7b2c\u51e0\u4e2a)\r\n\t\t\tfor( k in s ) {\r\n\t\t\t\tif( s&#x5B;k] == v)  {\r\n\t\t\t\t\treturn k;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tvar fwLastLayerT = parseInt(wfList.last().css(&quot;top&quot;)); \/\/\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u7684Top\u503c\r\n\t\tvar fwLastLayerH = wfList.last().outerHeight(true); \/\/\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u7684\u9ad8\u5ea6\r\n\t\tvar wfAreaH = fwLastLayerT + fwLastLayerH + &quot;px&quot;; \/\/\u663e\u793a\u533a\u57df\u7684\u9ad8\u5ea6\u4e3a \u6700\u540e\u4e00\u4e2a\u5143\u7d20\u7684Top\u503c+\u81ea\u8eab\u9ad8\u5ea6\r\n\t\twfArea.css({ &quot;width&quot;:wfWidth * maxCol,&quot;height&quot;:wfAreaH }); \/\/\u8bbe\u7f6e\u663e\u793a\u533a\u57df\u5bbd\u5ea6\u548c\u9ad8\u5ea6\r\n\t }\r\n\twindow.onload = function() { waterfall(); } \/\/\u5f53\u9875\u9762\u52a0\u8f7d\u5b8c\u6bd5\uff0c\u6267\u884c\u51fd\u6570\r\n\t$(window).resize(function(){ \/\/\u5f53\u7a97\u53e3\u6539\u53d8\u65f6\uff0c\u6267\u884c\u51fd\u6570\r\n\t\twaterfall();\r\n\t});\r\n});\r\n<\/pre>\n<p><strong>HTML CODE\uff1a<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;\/pre&gt;\r\n&lt;div class=&quot;info&quot;&gt;\r\nUblue jQuery Waterfall\r\n\r\nBy www.bluesdream.com&lt;\/div&gt;\r\n&lt;div id=&quot;waterfall&quot;&gt;\r\n&lt;div class=&quot;picList&quot;&gt;&lt;em class=&quot;shareIcon&quot;&gt;&lt;\/em&gt;\r\n&lt;div class=&quot;picThumbnail&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;images\/img29.jpg&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;\/div&gt;\r\n&lt;div class=&quot;picDescription&quot;&gt;\r\n\u56fe\u7247\u4ecb\u7ecd\u548c\u63cf\u8ff0\r\n\r\n\u4f5c\u8005\uff1aBluesdream.com&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=&quot;picList&quot;&gt;&lt;em class=&quot;shareIcon&quot;&gt;&lt;\/em&gt;\r\n&lt;div class=&quot;picThumbnail&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;images\/img30.jpg&quot; alt=&quot;&quot; \/&gt;&lt;\/a&gt;&lt;\/div&gt;\r\n&lt;div class=&quot;picDescription&quot;&gt;\r\n\u56fe\u7247\u4ecb\u7ecd\u548c\u63cf\u8ff0\r\n\r\n\u4f5c\u8005\uff1aBluesdream.com&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;pre&gt;\r\n<\/pre>\n<p><span style=\"color: #008000;\">\u517c\u5bb9\uff1aIE6-10\u3001Firefox\u3001Chrome\u3001Safari\u3001Opera<\/span><\/p>\n<p><span style=\"color: #008000;\">\u8bf4\u660e\uff1aDemo1 - \u5e03\u5c40\u6548\u679c\u3001Demo2 - \u6eda\u52a8\u65e0\u9650\u52a0\u8f7d<\/span><br \/>\n<span style=\"color: red;\">\u63d0\u793a\uff1aDemo2\u6eda\u52a8\u52a0\u8f7d\uff0c\u662f\u7528JSON\u83b7\u53d6\u7684\u6570\u636e\uff0c\u8bf7\u5728\u670d\u52a1\u5668\u73af\u5883\u4e0b(IIS\u6216Apache)\u6d4b\u8bd5\u3002<\/span><br \/>\n<span style=\"color: red;\">\u63d0\u793a\uff1aDemo3\u5728Demo2\u7684\u57fa\u7840\u4e0a\u589e\u52a0\u7011\u5e03\u6d41\u53ef\u663e\u8303\u56f4\u7684\u4fee\u6539\u63d0\u793a\u548c\u589e\u52a0\u521d\u6b21\u52a0\u8f7d\u65f6\u7684loading\u6548\u679c\u3002<\/span><\/p>\n<p><a class=\"dlBtn\" title=\"\u67e5\u770b\u6f14\u793a\" href=\"http:\/\/www.bluesdream.com\/case\/jquery\/ublue-jquery-waterfall\/\" target=\"_blank\">Demo1<\/a><a class=\"dlBtn\" title=\"\u67e5\u770b\u6f14\u793a\" href=\"http:\/\/www.bluesdream.com\/case\/jquery\/ublue-jquery-waterfall\/index2.html\" target=\"_blank\">Demo2<\/a><a class=\"dlBtn\" title=\"\u67e5\u770b\u6f14\u793a\" href=\"http:\/\/www.bluesdream.com\/case\/jquery\/ublue-jquery-waterfall\/index3.html\" target=\"_blank\">Demo3<\/a><a class=\"dlBtn\" title=\"Download\" href=\"https:\/\/github.com\/zhonglimh\/Ublue-jQueryWaterfall\/archive\/master.zip\" target=\"_blank\">Download<\/a><a class=\"dlBtn\" title=\"Github\" href=\"https:\/\/github.com\/zhonglimh\/Ublue-jQueryWaterfall\" target=\"_blank\">Github<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f15\u8a00\uff1a\u7011\u5e03\u6d41\u5f0f\u5e03\u5c40\uff08\u53c8\u540d\uff1a\u7011\u5e03\u56fe\u7247\u5899\uff09\uff0c\u800cPinterest\u5219\u662f\u8be5\u5e03\u5c40\u7684\u9f3b\u7956\u3002\u6700\u8be5\u5e03\u5c40\u5f62\u5f0f\u6700\u521d\u5728\u56fd\u5185\u9ed8\u9ed8\u65e0\u95fb\uff0c\u4f46\u968f\u7740\u8611\u83c7\u8857\u3001\u70b9\u70b9\u548c\u82b1\u74e3\u7f51\u7b49\u7b49\u7684\u5174\u8d77...\u8fd9\u6837\u7684\u5e03\u5c40\u65b9\u5f0f\u4e5f\u6e10\u6e10\u88ab\u4eba\u4eec\u6240\u719f\u77e5\u3002\u53ef\u80fd\u6709\u4eba\u4e0d\u7ecf\u610f\u8981\u95ee\uff0c\u4e3a\u4ec0\u4e48\u73b0\u5728\u8d8a\u6765\u8d8a\u591a\u7684\u7f51\u7ad9\u90fd\u8fd9\u6837\u6548\u4eff\u5462\uff1f\u6211\u4e2a\u4eba\u603b\u7ed3\u4e862\u70b9\uff1a\u9996\u5148\uff0c\u56fe\u7247+\u94fe\u63a5\u7684\u65b9\u5f0f\uff0c\u65b9\u4fbf\u4e86\u7528\u6237\u6d4f\u89c8\uff0c\u4e5f\u80fd\u6e05\u6670\u627e\u5230\u76f8\u5173\u5185\u5bb9\uff0c\u53ef\u8c13\u662f\u4e00\u76ee\u4e86\u7136\u3002\u5176\u6b21\uff0c\u770b\u4f3c\u6563\u4e71\u65e0\u5e8f\u7684\u788e\u7247\u5316\u5185\u5bb9\uff0c\u6709\u7740\u5f3a\u5927\u7684\u89c6\u89c9\u611f\u67d3\u529b\u3002\u7531\u4e8e\u5185\u5bb9\u968f\u673a\u548c\u4e0d\u786e\u5b9a\u6027\uff0c\u66f4\u80fd\u591f\u8bf1\u5bfc\u7528\u6237\u53cd\u590d\u67e5\u770b\uff0c\u6709\u65f6\u66f4\u50cf\u662f\u79cd\u201c\u63a2\u5b9d\u201d\u5e0c\u671b\u627e\u5230\u81ea\u5df1\u6240\u559c\u6b22\u7684\u5185\u5bb9\u3002 \u597d\u4e86\uff0c\u8bf4\u4e86\u4e00\u5806\u4ecb\u7ecd\uff0c\u5f00\u59cb\u8fdb\u5165\u6b63\u9898\u3002\u5176\u5b9e\uff0c\u8fd9\u4e2aDemo\u5f88\u65e9\u5c31\u5f00\u59cb\u5236\u4f5c\u4e86\uff0c\u7531\u4e8e\u79cd\u79cd\u539f\u56e0\uff0c\u4e00\u76f4\u6ca1\u80fd\u5199\u8fd9\u6587\u7ae0\u3002\u7531\u4e8e\u6700\u8fd1\u5728\u505a\u4e00\u4e2a\u9879\u76ee\uff0c\u9700\u8981\u7528\u5230\u8fd9\u4e2a\u5e03\u5c40\u65b9\u5f0f\uff0c\u4e5f\u6240\u8c13\u662f\u4e0d\u7528\u4e0d\u77e5\u9053\uff0c\u4e00\u7528\u624d\u77e5\u9053\uff0c\u770b\u4f3c\u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8fd8\u662f\u6709\u5f88\u591a\u95ee\u9898\u9700\u8981\u89e3\u51b3\u3002\u6240\u4ee5\uff0c\u8fb9\u505a\u9879\u76ee\u7684\u540c\u65f6\uff0c\u4e5f\u628aDemo\u4f18\u5316\u3001\u66f4\u65b0\u4e86\u4e0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":256,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[76,78,71,29],"class_list":["post-254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-front-end","tag-css3","tag-html","tag-jquery","tag-original"],"_links":{"self":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts\/254"}],"collection":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/comments?post=254"}],"version-history":[{"count":0,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/posts\/254\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/media\/256"}],"wp:attachment":[{"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/media?parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/categories?post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluesdream.com\/blog\/wp-json\/wp\/v2\/tags?post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}