<!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; } .container { width: 300px; padding: 16px; backgroundcolor: white; margin: 100px auto; border: 1px solid #ccc; borderradius: 4px; } h2 { textalign: center; marginbottom: 24px; } input[type=text], input[type=password] { width: 100%; padding: 12px 20px; margin: 8px 0; display: inlineblock; border: 1px solid #ccc; boxsizing: borderbox; } button { backgroundcolor: #4CAF50; color: white; padding: 14px 20px; margin: 8px 0; border: none; cursor: pointer; width: 100%; } button:hover { opacity: 0.8; } </style> </head> <body> <div class="container"> <h2>登录</h2> <label for="uname"><b>用户名</b></label> <input type="text" placeholder="输入用户名" name="uname" required> <label for="psw"><b>密码</b></label> <input type="password" placeholder="输入密码" name="psw" required> <button type="submit">登录</button> </div> </body> </html>
原创文章,作者:未希,如若转载,请注明出处:https://www.kdun.com/ask/648191.html
本网站发布或转载的文章及图片均来自网络,其原创性以及文中表达的观点和判断不代表本网站。如有问题,请联系客服处理。
发表回复