为什么不在一行中不显示div元素?
我如何
在网站中尝试过的解决方案中的一行中显示DIV元素,但仍无法使用,
这是视图代码:
<div class="row">
@foreach (var item in Model)
{
<div class="col-md-4 thumbnail" style="margin-left:30px;margin-bottom:30px; height:100px;border:solid;float:left;width:350px;">
<h3>@Html.DisplayFor(modelItem => item.id)</h3>
<h3>@Html.DisplayFor(modelItem => item.name)</h3>
@Html.ActionLink(" Show Result ", " Results ", new { sId = Model.FirstOrDefault().id }, new { @class = "btn btn-primary" });
</div>
}
</div>
请参阅图像视图,我需要输出在框
1示例中的一行中,no 1显示结果
How can I show the div elements in one line
I tried solutions in the site but still not working
This is the view code :
<div class="row">
@foreach (var item in Model)
{
<div class="col-md-4 thumbnail" style="margin-left:30px;margin-bottom:30px; height:100px;border:solid;float:left;width:350px;">
<h3>@Html.DisplayFor(modelItem => item.id)</h3>
<h3>@Html.DisplayFor(modelItem => item.name)</h3>
@Html.ActionLink(" Show Result ", " Results ", new { sId = Model.FirstOrDefault().id }, new { @class = "btn btn-primary" });
</div>
}
</div>
See the image view I need the output to be in one line inside the box
1 Sample No 1 Show Result
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
或将H3转向H4
or change H3 heading to H4