【发布时间】:2013-02-20 04:57:59
【问题描述】:
我试图在我的img tag 旁边放置一个div,但div 显示在img tag 下方,但我想要它在旁边,我们如何将img and div tag 放在彼此旁边
<img usemap="#ChartImageMap" src="@Url.Action("GetChart", "Home")" alt="Asp.Net Char" style="width:450px;height:300px;border-width:0px;" />
<div id="map" style="height:300px;"></div>
【问题讨论】:
-
只需使用
display:inline作为您的 div 标签。 fiddle
标签: asp.net-mvc html tags image