If you want this effect, instead of using div, you can use the label directly
<fieldset>
<legend>姓名</legend>
<input type="text" placeholder="请输入..." />
</fieldset>
If you want this effect, instead of using div, you can use the label directly
<fieldset>
<legend>姓名</legend>
<input type="text" placeholder="请输入..." />
</fieldset>