【js】 流式布局 页面
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta charset="utf-8" /> <style type="text/css"> .eblock{ position: absolute;width:200px;min-height:300px; border:1px solid #F00;} </style> <script src="http://r.ytrss.com/rs/js/yintaih5/h5js/lib/jquery.js"></script> <script type="text/javascript"> $(function() { var current; var rowfirst; var rowsecond; var rowthrid; var rowfourth; var index = 1; $(".eblock").each(function() { current = $(this); // 获取首行元素 if (index <= 4) { if (index % 4 == 1) { rowfirst = $(this); } else if (index % 4 == 2) {