上一篇
如何编写登录界面的HTML源码?
- 行业动态
- 2024-10-02
- 1
“
html,,,,,登录界面,,,请登录,,用户名:,,密码:,,,,,,
“
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF8"> <meta name="viewport" content="width=devicewidth, initialscale=1.0"> <title>登录界面</title> <style> body { fontfamily: Arial, sansserif; backgroundcolor: #f0f0f0; display: flex; justifycontent: center; alignitems: center; height: 100vh; margin: 0; } .logincontainer { backgroundcolor: #ffffff; borderradius: 5px; boxshadow: 0 2px 5px rgba(0, 0, 0, 0.1); width: 400px; padding: 20px; } h1 { textalign: center; marginbottom: 20px; } input[type="text"], input[type="password"] { width: 100%; padding: 10px; marginbottom: 10px; border: 1px solid #ccc; borderradius: 3px; } button { width: 100%; padding: 10px; backgroundcolor: #007bff; color: #ffffff; border: none; borderradius: 3px; cursor: pointer; } button:hover { backgroundcolor: #0056b3; } </style> </head> <body> <div class="logincontainer"> <h1>登录</h1> <form> <label for="username">用户名:</label> <input type="text" id="username" name="username" required> <label for="password">密码:</label> <input type="password" id="password" name="password" required> <button type="submit">登录</button> </form> </div> </body> </html>
以上就是关于“登录界面html源码”的问题,朋友们可以点击主页了解更多内容,希望可以够帮助大家!
本站发布或转载的文章及图片均来自网络,其原创性以及文中表达的观点和判断不代表本站,有问题联系侵删!
本文链接:http://www.xixizhuji.com/fuzhu/10860.html