View页面。
复制代码 代码如下:
@{
ViewBag.Title = "瀑布流";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header{
.* {
margin:0px;
padding:0px;
}
body {
margin-left:auto;
margin-right:auto;
}
.ClearBoth {
clear:both;
}
#bodyContent {
width:1400px;
margin-left:auto;
margin-right:auto;
}
#head {
width:100%;
height:50px;
margin-bottom:10px;
}
#LefMenue {
width:20%;
height:500px;
float:left;
}
#RightContent {
width:75%;
float:right;
border: thin solid #333;
}
#Footer {
margin-top:10px;
width:100%;
height:40px;
}
.GreyBlock {
border: thin solid #333;
background-color:#CCC;
width:100%;
}
.Item {
float: left;
width: 230px;
margin:5px;
border: 1px solid #CCC;
}
}
Head
加载中,请稍后...
@section scripts{
}
C#服务端:
复制代码 代码如下:
public JsonResult GetData()
{
Random ro = new Random();
List
for (int i = 0; i < 12; i++)
{
vListInt.Add(ro.Next(400, 500));
}
return Json(vListInt, JsonRequestBehavior.AllowGet);
}



