bootstrap
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>基础表单</title> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> </head> <body> <form role="form"> <div> <label for="exampleInputEmail1">邮箱:</label> <input type="email" id="exampleInputEmail1" placeholder="请输入您的邮箱地址"> </div> <div> <label for="exampleInputPassword1">密码</label> <input type="password" id="exampleInputPassword1" placeholder="请输入您的邮箱密码"> </div> <div> <label> <input type="checkbox"> 记住密码 </input> </label> </div> <button type="submit" class="btn btn-default">进入邮箱</button> </form> </body> </html>
为什么这里的<input>标签不需要有对应的</input>?有点反h5吧?