I'm trying to place a div
beside my img tag
, but the div
is being displayed down the img tag
, but i want it beside, how can we place img and div tag
beside each other
我正在尝试在我的img标签旁边放置一个div,但div正在显示在img标签下面,但是我想要它旁边,我们如何将img和div标签放在一起
<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>
1 个解决方案
#1
1
You want the div to display inline:
您希望div显示为内联:
<div id="map" style="display:inline; height:300px;"></div>
You could also just use a span:
你也可以使用一个范围:
<span id="map" style="height:300px;"></span>
#1
1
You want the div to display inline:
您希望div显示为内联:
<div id="map" style="display:inline; height:300px;"></div>
You could also just use a span:
你也可以使用一个范围:
<span id="map" style="height:300px;"></span>