BootStrap小知识随笔

1、让label和input在一行显示

添加class "form-inline"就可以了。如

        <table class="table table-bordered form-inline">
            <tr>
                <td>
                     姓名: <input id="txt_Name" type="text" class="form-control" placeholder="姓名" style=" 200px;">
                </td>
                <td>
                    手机:<input id="txt_Phone" type="text" class="form-control" placeholder="手机" style=" 200px;">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input id="txt_Birthday" name="txt_Birthday" type="text" class="form-control input-wdatepicker" style=" 200px;" onfocus="WdatePicker()" />
                </td>
            </tr>
        </table>

    

原文地址:https://www.cnblogs.com/ilove35/p/10508903.html