border-left-color

設定物件的左框線色彩。

語法

{ border-left-color: sColor }

可能的值

sColor

指定其中一個色彩名稱或 RGB 值的變數。

此屬性沒有預設值,而且不是繼承屬性。

備註

某些瀏覽器無法辨識色彩名稱,但所有瀏覽器應該都能辨識 RGB 色彩值並正確加以顯示。

範例

下列範例使用 border-left-color 屬性來指定左框線的色彩。此範例會呼叫內嵌 (全域) 樣式表,以在發生 onmouseover 事件時,將左框線的色彩從 red 變更為 blue

<head><style>
    td { border-left-color: red;
        border-width: 0.5cm; border-style: groove; }
    .blue { border-left-color: blue; }
</style>
</head>
<body>
<table border >
<tr>
    <td onmouseover="this.className='blue '" onmouseout="this.className=''">
        <img src="sphere.jpg">
    </td>
</tr>
</table>

標準資訊

您可以在 Cascading Style Sheets (CSS), Level 2 (CSS2) (階層式樣式表 (CSS) 層級 2 (CSS2)) Ee371211.xtlink_newWindow(zh-tw,Expression.40).png 找到此屬性的定義。

適用範圍

a, abbr, acronym, b, bdo, big, blockquote, body, button, caption, center, cite, code, custom, dd, defaults, del, dfn, div, dl, dt, em, embed, fieldset, font, form, frame, hn, hr, i, iframe, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, li, object, ol, p, q, s, span, sub, table, td, th, tt, u, ul, var, xmp

另請參閱

概念

border
border-left
border-color
色彩