我正在尝试在gsp中已存在的表的右侧显示图像。
下面是我的代码。
<body>
<section>
<div id=“image”></div>
<section>
<q:search/>
<div class="table-responsive">
<table class="table table-striped">
</table>
</div>
</section>
</section>
</body>
目前,图像div位于表格顶部。我需要它总是在桌子的右边。我该怎么做?。
最后终于成功了,我是这样做的。有更好的方法吗?。
<div style="clear:both; width:100%">
<div style="margin-bottom: 30px;float:left;width:50%;">
</div>
<div style="float:left;max-width:30%;max-height:20%;margin-bottom:30px" >
</div>
</div>
我是这样做的。有更好的方法吗?。
<div style="clear:both; width:100%">
<div style="margin-bottom: 30px;float:left;width:50%;">
</div>
<div style="float:left;max-width:30%;max-height:20%;margin-bottom:30px" >
</div>
</div>