<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>input框</title></head><body><form><fieldset><legend><h3>input</h3></legend> 姓名:<br><inputtype="text"placeholder="请输入姓名(必填)"required><br> 手机号:<br><inputtype="tel"placeholder="请输入手机号码(必填)"pattern="[0-9]{11}"maxlength="11"required><br> 邮箱:<br><inputtype="email"placeholder="请输入电子邮箱地址"required><br> 所属专业:<br><inputtype="text"placeholder="请选择专业(必填)"list="insiitute"><br><datalistid="insiitute"><optionvalue="软件"></option><optionvalue="管理"></option><optionvalue="物联网"></option><optionvalue="大数据"></option><optionvalue="计算机"></option></datalist><br><inputtype="submit"value="保存"></fieldset></form></body><style> body{width: 300px;}
input{width: 260px;margin-top: 5px;}
</style></html>