Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

概要

border-top-width は、ボックスの上辺のボーダー(境界線)の幅を設定する為の CSS プロパティです。

初期値medium
適用対象全要素. It also applies to ::first-letter.
継承不可
メディアvisual
計算値the absolute length or 0 if border-top-style is none or hidden
アニメーションの可否可。 の値として補完しますlength
正規順序形式文法で定義される一意のあいまいでない順序

構文

<br-width>

where
<br-width> = <length> | thin | medium | thick

border-width
負数でない <length> 値、もしくはボーダーの幅を示すキーワード。キーワードには以下に示す三種の内の何れか一つを指定可能です。
キーワード 表示 説明
thin
 
細い境界線
medium
 
中程度の太さの境界線
thick
 
太い境界線
仕様書はこれらのキーワードに対し明確な幅を定義していません。しかしながら、thin より medium を、medium より thick を太いボーダーとして、また同一キーワードが文書中で同じ太さのボーダーとして表示されるよう要求しています。</length>
inherit
親要素の border-top-width の計算値を継承

element { 
    border-top-width: thin;
    border-top-style: solid;
    border-top-color: #000;
}

仕様

仕様書 策定状況 コメント
CSS Backgrounds and Borders Module Level 3
border-top-width の定義
勧告候補 有意な変更は無し
CSS Level 2 (Revision 1)
border-top-width の定義
勧告 最初期の定義

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
基本機能 1.0 1.0 (1.0) 4.0 3.5 1.0 (85)
機能 Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
基本機能 ? ? ? ? ?

関連情報

ドキュメントのタグと貢献者

タグ: 
 このページの貢献者: Prinz_Rana, Sebastianz, ethertank, sosleepy, Yuichiro, Marsf
 最終更新者: Prinz_Rana,