1

我想在引导程序上标记简单的表单。来自引导文档的这段代码:

<form class="form-horizontal">
    <div class="control-group">
        <label class="control-label" for="inputEmail">Email</label>
        <div class="controls">
            <input type="text" id="inputEmail" placeholder="Email">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="inputPassword">Password</label>
        <div class="controls">
            <input type="password" id="inputPassword" placeholder="Password">
        </div>
    </div>      
</form>

如何在标签前添加复选框?这是jsfiddle

4

1 回答 1

2

试试这个:

<div class="control-group">
    <div class="controls">
        <label><input type="checkbox" /> A checkbox</label>
    </div>
</div> 
于 2013-02-14T08:13:39.237 回答