HTML用戶注冊頁面設(shè)置源碼
發(fā)布時(shí)間:2020-10-16 15:45:42 作者:海底程序員
我要評論

這篇文章主要介紹了HTML用戶注冊頁面設(shè)置源碼,代碼簡單易懂,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
設(shè)計(jì)上圖中的網(wǎng)頁:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> form{ width: 800px; height: 700px; border: 1px solid red; margin: auto; background: url(images/tree.jpg) no-repeat -40px 300px; } form h3{ margin-left: 200px; } p{ margin-left: 200px; } hr{ margin-left: 200px; } .a1{ margin-left: 85px; } .a2{ margin-left: 110px; } input, textarea { background: url(images/attention.png) no-repeat right; } button{ margin-left: 200px; background: rgb(81, 187, 125); color: white; } span#as:hover input{ width: 300px; height: 40px; } </style> </head> <body> <form action=""> <h3>用戶注冊:</h3> <hr> <p>用戶昵稱:<span class="a1" id="as"><input type="text" required placeholder autofocus></span> <hr></p> <p>注冊郵箱:<span class="a1" id="as"><input type="email" required placeholder="javin@example.com"></span><hr></p> <p>密碼: <span class="a2" id="as"><input type="password" required placeholder></span><hr></p> <p>性別:<span class="a2">男<input type="radio" name="1" checked> 女 <input type="radio" name="1"> </span><hr> </p> <p>年齡:<span class="a2" id="as"><input type="number" name="number1" required placeholder></span><hr></p> <p>興趣愛好:<span class="a1"> 足球<input type="checkbox" name="1"> 籃球<input type="checkbox" name="1"> 游泳<input type="checkbox" name="1"> 唱歌<input type="checkbox" name="1"> 跑步<input type="checkbox" name="1"> 瑜伽<input type="checkbox" name="1"> </span><hr></p> <p>自我介紹: <span class="a1"><textarea name="abcde" cols="30" rows="10" required placeholder>Please enter your message</textarea></span><hr> </p> <button type=submit>立即注冊</button> <div></div> </form> </body> </html>
到此這篇關(guān)于HTML用戶注冊頁面設(shè)置源碼的文章就介紹到這了,更多相關(guān)html用戶注冊頁面內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!
相關(guān)文章
- 這篇文章主要為大家詳細(xì)介紹了HTML繪制用戶注冊頁面的的相關(guān)代碼,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2016-06-16
Html5實(shí)現(xiàn)用戶注冊自動(dòng)校驗(yàn)功能實(shí)例代碼
這篇文章主要介紹了 Html5實(shí)現(xiàn)用戶注冊自動(dòng)校驗(yàn)功能實(shí)例代碼的相關(guān)資料,需要的朋友可以參考下2016-05-24