<style>
form{
width: 100%;
max-width: 640px;
min-width: 320px;
margin: 0 auto;
font-family: "Microsoft Yahei";
font-size: 20px;
}
input{
display: block;
width: 100%;
height: 30px;
margin: 10px 0;
}
</style>
<form action="">
<fieldset>
<legend>表单属性</legend>
<label for="username">
用户名: <input type="text" name="username" id="username" placeholder="例如:dzm" autocomplete="off" autofocus required>
</label>
<label for="email">
邮件: <input type="email" name="email" id="email">
</label>
<label for="tel">
电话: <input type="tel" name="tel" id="tel" pattern="1\d{10}">
</label>
<input type="file" name="file">
<input type="submit" value="提交">
</fieldset>
</form>