Bootstrap面板主体左右

时间:2017-12-19 03:40:08

标签: php twitter-bootstrap-3

我想要左右创建面板体引导

这里是我的代码

<div class="panel-body">
    <p>1. Fill Full Name</p>
    <p>&nbsp;&nbsp;&nbsp; Example</p>
    <label for="name" class="col-sm-1 control-label">Full Name<span class="important">*</span></label>

    <div class="col-sm-3">
        <input type="text" class="form-control" id="name" name="name" size="40" maxlength="50" disabled="disabled"
            value="Full Name" required>
        <div class="help-block with-errors"></div>
    </div>
</div>
<!-- Phone Ext -->
<div class="panel-body">
    <p>2. Fill Phone Extention</p>
    <p>&nbsp;&nbsp;&nbsp; Extention</p>
    <label for="name" class="col-sm-1 control-label">Phone Extention<span class="important">*</span></label>

    <div class="col-sm-3">
        <input type="text" class="form-control" id="name" name="name" size="40" maxlength="50" disabled="disabled"
                value="Phone Extention" required>
        <div class="help-block with-errors"></div>
    </div>
</div>

和数字3我想要它在右侧

非常感谢你的帮助

1 个答案:

答案 0 :(得分:0)

您可以像这样拆分列:

let overview = UIView.init(frame: CGRect(x: 0, y: 0, width: 812, height: 100))
overview.backgroundColor = UIColor.green
scrollView.addSubview(overview)
scrollView.contentSize = CGSize(width: overview.frame.size.width, height: 100)
scrollView.translatesAutoresizingMaskIntoConstraints = false