Bootstrap提交表单基本组件

Bootstrap提交表单基本组件

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单</title>
    <link rel="stylesheet " href="static/css/bootstrap.min.css">
</head>
<body>
<form role="form">
    <div class="form-group">
        <label>用户名:</label>
        <input type="text" class="form-control" placeholder="user"style="width: 250px">
        <label>密码:</label>
        <input type="password" class="form-control" placeholder="password" style="width: 250px">
        <label>email:</label>
        <input type="email" class="form-control" placeholder="Email" style="width: 250px">
        <label>日期:</label>
        <input type="date" class="form-control" placeholder="date" style="width: 250px">
    </div>
    <hr/>
    <div class="form-group">
        <label>选择文件</label>
        <input type="file" class="form-control" placeholder="选择需要的文件" style="width: 250px">
    </div>
    <div class="form-group">
        <button type="submit" class="btn btn-primary">提交</button>
        <button type="button" class="btn btn-info">登录</button>
        <button type="button" class="btn btn-warning">撤销</button>
    </div>
</form>

</body>
</html>

实现效果:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43549291/article/details/109677043