|
border-top-style: 形式 |
⇔ 上の枠線の形式 |
border-bottom-style: 形式 |
⇔ 下の枠線の形式 |
border-left-style: 形式 |
⇔ 左の枠線の形式 |
border-right-style: 形式 |
⇔ 右の枠線の形式 |
border-style: 形式 |
⇔ 上・右・下・左の枠線の形式 |
●値が1つの場合 ●値が2つの場合 ●値が3つの場合 ●値が4つの場合 |
値1⇒上下左右 値1⇒上下 値2⇒左右 値1⇒上 値2⇒左右 値3⇒下 値1⇒上 値2⇒右 値3⇒下 値4⇒左 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"> <title>CSS覚書</title> <style type="text/css"> <!-- body { color: #ff6600; margin: 10 } p { text-align: center; font-weight: bold; padding: 0.5em; border: solid 8px #ff3300; } #sample1 { border-style: none } #sample2 { border-style: solid } #sample3 { border-style: double } #sample4 { border-style: dashed } #sample5 { border-style: dotted } #sample6 { border-style: groove } #sample7 { border-style: ridge } #sample8 { border-style: inset } #sample9 { border-style: outset } h1 { text-align: center } --> </style> </herd> <body> <h1>枠線の形式を指定する</h1> <p id="sample1">none</p> <p id="sample2">solid</p> <p id="sample3">double</p> <p id="sample4">dashed</p> <p id="sample5">dotted</p> <p id="sample6">groove</p> <p id="sample7">ridge</p> <p id="sample8">inset</p> <p id="sample9">outset</p> </body> </html> |