• BootStrap 之 CSS全局样式中的表单


    不使用BootStrap 之 CSS全局样式中的表单,自己也不定义CSS样式

    <form>
        <div>
            <label>Email address</label>
            <input type="email" placeholder="Email">
        </div>
        <div>
            <label>Password</label>
            <input type="password" placeholder="Password">
        </div>
        <div>
            <label>File input</label>
            <input type="file">
            <p>Example block-level help text here.</p>
        </div>
        <div>
            <label>
                <input> Check me out
            </label>
        </div>
        <button type="submit">Submit</button>
    </form>

    效果如下:

    使用BootStrap 之 CSS全局样式中的表单

    <form>
        <div class="form-group">
            <label for="exampleInputEmail1">Email address</label>
            <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">Password</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
        </div>
        <div class="form-group">
            <label for="exampleInputFile">File input</label>
            <input type="file" id="exampleInputFile">
            <p class="help-block">Example block-level help text here.</p>
        </div>
        <div class="checkbox">
            <label>
                <input type="checkbox"> Check me out
            </label>
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
    </form>

    效果如下:

    详情请查看:全局 CSS 样式

  • 相关阅读:
    在命令行下运行Matlab
    VMWare无法共享文件夹(Win7宿主机Ubuntu14.04客户机)
    [转] CVonline: Image Databases
    第二天
    第一天
    二宝软件的NABCD分析
    用c++实现环形数组的最大子数组之和
    返回一个二维整数数组中最大子数组的和
    求最大子数组之和
    四则运算
  • 原文地址:https://www.cnblogs.com/liyihua/p/12406011.html
Copyright © 2020-2023  润新知