码迷,mamicode.com
首页 > 其他好文 > 详细

<Bootstrap> 学习笔记四. 表单组和输入框组的使用

时间:2018-01-15 17:30:36      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:use   学习笔记   arch   group   bsp   user   lan   name   head   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css">
    <script src="bootstrap/js/jquery-3.2.1.js"></script>
    <script src="bootstrap/js/bootstrap.js"></script>
    <style>

    </style>
</head>
<body>
<form>
    <div class="container">
        <!--输入框-->
        <div class="form-group">
            <label for="tel">手机号</label>
            <input type="input" name="tel" id="tel" class="form-control">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="input" name="tel" id="password" class="form-control">
        </div>

        <!--复选框-->
        <div class="form-group">
            <label class="checkbox-inline"><input type="checkbox" name="hobby">唱歌</label>
            <label class="checkbox-inline"><input type="checkbox" name="hobby">唱歌</label>
            <label class="checkbox-inline"><input type="checkbox" name="hobby">唱歌</label>
        </div>

        <!--单选框-->
        <div class="form-group">
            <label class="radio-inline"><input type="radio" name="sex" value="男"></label>
            <label class="radio-inline"><input type="radio" name="sex" value="女"></label>
        </div>

        <!--输入框组-->
        <div class="form-group">
            <div class="input-group">
                <span class="input-group-addon">搜索</span>
                <input type="text" name="search" class="form-control">
            </div>
        </div>

        <div class="form-group">
            <div class="input-group">
                <input type="text" name="search" class="form-control">
                <span class="input-group-addon">搜索</span>
            </div>
        </div>

        <div class="form-group">
            <div class="input-group">
        <span class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
        </span>
                <input type="text" name="username" class="form-control">
            </div>
        </div>

        <div class="form-group">
            <div class="input-group">
        <span class="input-group-addon">
            <span class="glyphicon glyphicon-lock"></span>
        </span>
                <input type="password" name="username" class="form-control">
            </div>
        </div>
    </div>
</form>
</body>
</html>

 

<Bootstrap> 学习笔记四. 表单组和输入框组的使用

标签:use   学习笔记   arch   group   bsp   user   lan   name   head   

原文地址:https://www.cnblogs.com/ZeroHour/p/8288779.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!