1. 程式人生 > >html5-表單的綜合實例

html5-表單的綜合實例

padding ace leg tel use radi css label 電子郵箱

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表單的綜合實例</title>
<style type="text/css">
body{background:url(pic/1.png);}
form{width: 400px;background: #f0f0f0;padding: 10px;margin-top: 250px;margin-left: 600px;}
button{background: #808080;padding: 8px;border-radius: 5px;}
input{padding: 8px;background: #f8f8f8;}
input:focus{background: #ffc0cb}
button:hover{background: #ffc0cb;padding: 10px;}
</style>
</head>
<body>
<form action="">
<fieldset>
<legend>用戶註冊</legend>
<label for="user">用戶</label><input type="text" name="user" id="user" placeholder="用戶名" required=""><br>
<label for="password">密碼</label><input type="password" name="password" id="password" placeholder="密碼"><br>
<label for="tel">電話</label><input type="tel" name="tel" id="tel" placeholder="電話"><br>
<label for="email">郵箱</label><input type="email" name="email" id="email" placeholder="電子郵箱"><br>
<!-- <input type="submit" value="註冊"> -->
<button>註冊</button>
</fieldset>
</form>
</body>
</html>

html5-表單的綜合實例