• bootstrap系列-6.BooStrap表单(上)


    本节代码实例只要讲解表单的及控件的UI属性设定,讲解的内容均以注释的方式写出

    DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>BootStrap表单title>
    	<meta charset="utf-8" />
        <link href="bootstrap.css" rel="stylesheet" />
    head>
    <body>
        
        <form role="form" class="form-inline">
            
            <div class="form-group">
                
                
                <label class="sr-only">emaillabel>
                <input type="email" class="form-control" placeholder="Enter email" />
            div>
            <div class="form-group">
                <label>密码label>
                <input type="password" class="form-control" placeholder="Enter password" />
            div>
            <div class="form-group">
                <label>选择文件label>
                <input type="file" />
                <p class="help-block">选择你需要的文件p>
            div>
        form>
        
        <form class="form-horizontal" role="form">
            <div class="form-group">
                
                <label class="col-sm-2 control-label">Emaillabel>
                <div class="col-sm-10">
                    <input type="email" class="form-control" placeholder="Email" />
                 div>
            div>
            <div class="form-group">
                
                <label class="col-sm-2 control-label">Passwordlabel>
                <div class="col-sm-10">
                    <input type="email" class="form-control" placeholder="Password" />
                div>
            div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" />记住密码
                        label>
                    div>
                div>
            div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">登录button>
                div>
            div>
        form>
    body>
    html>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61

    在这里插入图片描述

  • 相关阅读:
    数学建模--智能算法之鱼群算法
    三个课堂解决方案
    【从0实现React18】 (一) 项目初始化
    怎样图片转文字?两分钟让你实现快速转文字
    实战指南:使用 xUnit 和 ASP.NET Core 进行集成测试【完整教程】
    【数据结构:线性表——2.2 列表】
    m基于MATLAB的FM调制收音机仿真实现
    手动搭建K8S环境
    PPPoE lcp和ncp协商
    Go工作空间
  • 原文地址:https://blog.csdn.net/cdc8596/article/details/126533128