时间:2021-07-01 10:21:17 帮助过:3人阅读
@foreach (var cat in Model.CateFather) { if (cat.IsMagazine.HasValue && cat.IsMagazine.Value) { @Html.ActionLink(cat.Name, "Magazine", "Lib",new { id = cat.ID }, new { target = "_blank", title = cat.Name }); //杂志类型 } else { @Html.ActionLink(cat.Name, "Category", "Lib", new { id = cat.ID }, new { target = "_blank", title = cat.Name }) //一般分类 } counter6 = counter6 + 1; if (counter6 % 6 == 0) {
counter6 = 0; } else { int i = System.Text.Encoding.GetEncoding("gb2312").GetBytes(cat.Name).Length; string strSpace = ""; if (30 > i) { @strSpace.PadRight(30 - i, '-'); } } }
现在我用div布局,又有了一个新的问题,看下图
红色框里边这块怎么跑到右边去了,我是想它在下边
请问该怎么写?
下边是html
还是自己来
加一个