<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>登陆页面</title> <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"> <link href="css/bootstrap.css" rel="stylesheet" media="screen"> </head> <body> <div class="panel panel-info"> <div class="panel-heading"> <table frame="void"> <tr> <td> <img src="images/img0.jpg" width="300px" height="300px" /> </td> <td> 欢迎。请您先登录。 </td> </tr> </table> </div> <div class="panel-body"> <form class="form-horizontal" role="form" action="1.html" method="post"> <div class="form-group"> <label for="username" class="col-sm-2 control-label"> 用户名: </label> <div class="col-sm-10"> <input type="text" name="username" class="form-control" placeholder="用户名" id="username" /> </div> </div> <div class="form-group"> <label for="password" class="col-sm-2 control-label"> 密码: </label> <div class="col-sm-10"> <input type="password" name="password" class="form-control" placeholder="密码" id="password" /> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-info"> 登陆 </button> <small> 没有账号?<a href="http://2.com">点击注册</a> </small> </div> </div> </form> </div> </div> </body> </html>
<head> <title>登陆页面</title> <!--要求页面自动适应浏览器的屏幕--> <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"> <!--声明我要使用bootstrap--> <link href="css/bootstrap.css" rel="stylesheet" media="screen"> </head>
<div class="panel-heading"> <!--设置表格对这个CSS图层进行布局,在img标签中加入align="left"是不好用的,图象会向图层外溢出--> <!--同<table border="0">--> <table frame="void"> <tr> <td> <img src="images/img0.jpg" width="300px" height="300px" /> </td> <td> 欢迎。请您先登录。 </td> </tr> </table> </div>
<div class="panel-body"> <form class="form-horizontal" role="form" action="1.html" method="post"> <!--每一个属性的外标签与输入框构成一个form-group元组--> <div class="form-group"> <!--如下的class属性是为了其能够根据屏幕的大小自动拉伸--> <label for="username" class="col-sm-2 control-label"> 用户名: </label> <div class="col-sm-10"> <!--此处的placholder意为不输入任何东西的说明灰字,当然在IE8中无法解释。id看不出有什么作用,仅仅是根据Bootstrap中文文档的要求而添加的--> <input type="text" name="username" class="form-control" placeholder="用户名" id="username" /> </div> </div> <div class="form-group"> <label for="password" class="col-sm-2 control-label"> 密码: </label> <div class="col-sm-10"> <input type="password" name="password" class="form-control" placeholder="密码" id="password" /> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <!--此处的button与HTML的普通submit按钮是有区别的,但不影响表单的提交--> <button type="submit" class="btn btn-info"> 登陆 </button> <!--<small>标签保证了这段文字与submit按钮同一行--> <small> 没有账号?<a href="http://2.com">点击注册</a> </small> </div> </div> </form> </div>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有