登录界面,仿小米
html页
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="target-densitydpi=device-dpi,width=640,user-scalable=0" /> <script type="application/javascript" src="_scripts/jquery-1.10.2.min.js"></script> <script type="application/javascript" src="_scripts/idangerous.swiper-2.1.min.js"></script> <script type="application/javascript" src="_scripts/common.js"></script> <link href="css/login.css" rel="stylesheet" type="text/css">
</head> <body> <div class="nl-content"> <div class="nl-logo-area"></div> <div class="nl-login-title">一个帐号,玩转租车软件</div> <div class="nl-login-intro">一个很好的租车软件</div> <input type="text" class="enter-item" placeholder="邮箱/手机号码/ID"/> <input type="password" class="enter-item" placeholder="密码"/> <input type="text" class="button" value="立即登录"> <div class="ng-foot"> <div class="ng-link-area"><a href="">忘记密码</a></div> </div> <a href="" class="button_one">注册帐号</a> <div class="nl-footer"> <div class="nl-f-copyright">版权所有,翻录必究</div> </div> </div> </body> </html>
css页
/* CSS Document */
*{margin:0;padding:0} img{border:0;} a{ text-decoration:none; color:#000;margin:0;outline:none; -webkit-tap-highlight-color:raba(0,0,0,0); } a:-webkit-any-link { color: -webkit-link; text-decoration: none; cursor: auto; } body{ overflow-y: none; margin: 0; padding: 0; font-size: 12px; font-family: 'Microsoft Yahei', '微软雅黑', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; } .nl-content{ text-align: center; width: 100%; position: absolute; height: 100%; top: 0; left: 0; } .nl-logo-area { margin:0 auto; height: 80px; margin-bottom: 40px; } .nl-login-title { font-size: 32px; margin:0 auto 10px; margin-bottom: 10px; color: #000; } .nl-login-intro { margin:0 auto; color: #8d8d8d; font-size: 14px; margin-bottom: 30px; } .enter-item { margin:0 auto; background: #fff; width: 298px; display: block; height: 20px; line-height: 20px; padding: 12px 10px; border: 1px solid #e6e6e6; border-radius: 6px; color: #333; font-size: 14px; font-weight: bold; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .button{ margin:0 auto; background: #ff7a4d; color: #fff; border: 1px solid #ff7549; border-radius: 6px; color: #7c7c7c; display: block; font-size: 16px; height: 44px; line-height: 44px; text-align: center; width: 320px; } .ng-foot { margin:0 auto; height: 18px; width:320px; margin-top: 16px; } .ng-link-area { margin:0 auto; text-align: right; color: #999; position: relative; float: right; text-align: right; } .button_one { margin:0 auto; cursor: pointer; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; color: #7c7c7c; display: block; overflow: hidden; font-size: 16px; height: 44px; line-height: 44px; text-align: center; width: 320px; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .nl-footer { margin:0 auto; text-align: center; padding-bottom: 20px; position: absolute; bottom: 0; left: 0; width: 100%; } .nl-f-copyright { margin:0 auto; color: #999; text-align: center; }
posted on 2015-03-10 21:42 liuwenbohhh 阅读(364) 评论(0) 编辑 收藏 举报
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步