小智 54
<div id="form" style="width:350px;">
<fieldset>
<legend style="color:blue;font-weight:bold;">General Information</legend>
<table>
<tr>
<td><span style="text-decoration:underline">C</span>hange Password To:</td>
<td><input type="text"/></td>
</tr>
<tr>
<td><span style="text-decoration:underline">C</span>onfirm Password:</td>
<td><input type="text"/></td>
</tr>
</table>
</fieldset>
</div>
Run Code Online (Sandbox Code Playgroud)
amo*_*era 16
图像可能使用fieldset标签而不是a div,fieldset你可以使用标签legend,它会自动定位在那里.
<fieldset>
<legend>General Information</legend>
</fieldset>
Run Code Online (Sandbox Code Playgroud)
<fieldset style="width:100px;">
<legend>
Please Enter Your Name</legend>
<br>
<table>
<tr>
<td>First Name:</td>
<td><input type="text" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" /></td>
</tr>
</table>
</fieldset>
Run Code Online (Sandbox Code Playgroud)
这将给你这样的输出。
