我想它很簡單,但我無法找到它,因爲我不知道它是如何調用的。 我想製作一個標題邊框,如下所示:如何給邊界一個標題?
---- TITLE_HERE -------------------------- --------
我想它很簡單,但我無法找到它,因爲我不知道它是如何調用的。 我想製作一個標題邊框,如下所示:如何給邊界一個標題?
---- TITLE_HERE -------------------------- --------
您可以使用<fieldset>
和<legend>
標籤來實現這一點,因爲從this answer拉到下面的代碼演示:
<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>
是的,@Xufox在評論中寫道。謝謝:) –
沒問題。希望代碼示例將提供更多幫助。 – Chase
我想你正在尋找類似的東西這樣的:
fieldset {
border : none;
border-top : 1px solid #000;
}
<fieldset>
<legend>Title</legend>
Here is some demo content
</fieldset>
參見this Fiddle。
您可能正在尋找['
是的!我忘了他們的名字。謝謝!我爲這個愚蠢的問題感到抱歉... @Xufox –
你希望我在沒有你的代碼的情況下猜測原因嗎? – Xufox