1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
| <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="HandheldFriendly" content="True" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <meta name="description" content="Web程序设计实验一" /> <meta name="keywords" content="ROYIANS,LD.L,小梦岛⁺,小梦岛,Web程序设计实验一" /> <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192" /> <title>Profiles | 小梦岛</title> <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'> <style>body{ display: flex; align-items: center; justify-content: center; height: 100vh; width: 100vw; background: linear-gradient(#84fab0,#8fd3f4) } .container { background:#ffffff; height: auto; width: 50%; padding: 1.5rem; box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2); border-radius: 0.5rem; text-align: center; color: #696969; } .container h1 { color:#000000; } .container form { text-align: left; padding-left: 20%; } .container input , .container textarea { resize: none; padding: 10px 5px; max-width: 100%; font-size: .775rem; border:none; outline: none; border-bottom: 1px dashed #999; } .container input:focus , .container textarea:focus { border:none; border-bottom: 1px dashed #009688; } form > label { position: relative; display: block; padding: 8px 0 8px 0; text-transform: uppercase; font-size: 14px; letter-spacing: .0875em; font-weight: 500; text-align: left; } button { width: 15%; background: transparent; border: 1px dashed #999; } ul { margin: 0; padding: 0; list-style: none; } ul li { margin: 0 0 0.25em 0; clear: both; display: inline-block; width: 100%; }</style></head> <body> <div class="container"> <h1>请留下个人资料</h1> <hr> <form> <ul> <li> <label for="name">姓名:</label> <input type="text" name="name" id="name" required /></li> <li> <label for="mail">E-Mail:</label> <input type="email" name="mail" id="mail" required /></li> <li> <label for="phone">电话:</label> <input type="text" name="phone" id="phone" pattern="1[3|4|5|7|8][0-9]{9}" title="11位手机号" required /></li> <li> <label>性别:</label> <input type="radio" name="sex" id="female" checked="" required /> <label for="female">女</label> <input type="radio" name="sex" id="male" required /> <label for="male">男</label></li> <li> <label>年龄:</label> <select name="age" required> <option value="le20">20以下</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="he25">25以上</option></select> </li> <li> <label for="msg">留言板:</label> <textarea maxlength="140" id="msg" name="msg"></textarea> </li> <li> <label for="hobby">您的爱好:</label> <input type="checkbox" name="hobby" id="sports" /> <label for="sports">运动</label> <input type="checkbox" name="hobby" id="reading" /> <label for="reading">阅读</label> <input type="checkbox" name="hobby" id="music" /> <label for="music">听音乐</label> <input type="checkbox" name="hobby" id="travel" /> <label for="travel">旅游</label></li> <li> <button type="submit">提交</button>  <button type="reset">全部重写</button> <li></ul> </form> <hr></div> </body>
</html>
|