我在 2 个 div 之间的中间添加 1 行并在 div 中调整复选框对齐时遇到问题。下面是我的编码:
<style>
.div1,
.div2 {
display: inline-block;
}
</style>
<div class="div1">
<div class="col-lg-12">
<input type="checkbox" name="rm_option" id="rm_option" value="1"><strong> Printing</strong></input>
<input type="checkbox" name="point_option" id="point_option" value="1"><strong> Matt/Gloss Lam</strong></input> <br>
<input type="checkbox" name="rm_option" id="rm_option" value="1"><strong> Plate</strong></input>
<input type="checkbox" name="point_option" id="point_option" value="1"><strong> Spot UV</strong></input> <br>
<input type="checkbox" name="rm_option" id="rm_option" value="1"><strong> Paper</strong></input>
<input type="checkbox" name="point_option" id="point_option" value="1"><strong> UV</strong></input> <br>
</div>
</div>
<div class="div2 pull-right">
<div class="form-group col-lg-12">
<label class="control-label col-lg-4">Remark/Instruction:<span style="color:red;"> *</span></label><br><br>
<div class="col-lg-7">
<textarea class="form-control" id="promotion_description" name="promotion_description" title="" style="margin: 0px -24px 0px 0px; width: 100%; height: 93px;"></textarea>
</div>
</div>
</div>
输出显示如下图所示:
实际上我想要的输出如下示例图片:
希望有人能指导我解决这些问题。谢谢。
慕无忌1623718
噜噜哒
www说
莫回无
相关分类