css底部雙描邊是“border-bottom-style”屬性,該屬性用于設(shè)置元素底部邊框的樣式,當(dāng)屬性值設(shè)置為“double”時,可給元素的底部添加雙實線邊框,即雙描邊效果;語法“border-bottom-style:double”。
本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。
css底部雙描邊是“border-bottom-style”屬性。
border-bottom-style屬性用于設(shè)置元素底部邊框的樣式
當(dāng)該屬性的值設(shè)置為“double”時,可給元素的底部添加雙實線邊框,即實現(xiàn)雙描邊效果。
示例:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> p.double { border-bottom-style: double; } </style> </head> <body> <p>無邊界。</p> <p class="double">雙線底邊界。</p> </body> </html>
說明:
border-bottom-style屬性的值除了double,還有:
值 | 說明 |
---|---|
none | 指定無邊框 |
hidden | 與"none" 相同。不過應(yīng)用于表時除外,對于表,hidden 用于解決邊框沖突。 |
dotted | 指定點狀邊框 |
dashed | 指定虛線邊框 |
solid | 指定實線邊框 |
groove | 定義雙線。雙線的寬度等于 border-width 的值 |
ridge | 定義三維菱形邊框。其效果取決于 border-color 的值 |
inset | 定義三維凹邊框。其效果取決于 border-color 的值 |
outset | 定義三維凸邊框。其效果取決于 border-color 的值 |
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> p.dotted { border-bottom-style: dotted; } p.dashed { border-bottom-style: dashed; } p.solid { border-bottom-style: solid; } p.groove { border-bottom-style: groove; } p.ridge { border-bottom-style: ridge; } p.inset { border-bottom-style: inset; } p.outset { border-bottom-style: outset; } </style> </head> <body> <p class="dotted">點底邊界。</p> <p class="dashed">虛線底邊界。</p> <p class="solid">實線底邊界。</p> <p class="groove">凹槽底邊界。</p> <p class="ridge">壟狀底邊界。</p> <p class="inset">嵌入底邊界。</p> <p class="outset">外凸底邊界。</p> </body> </html>
(學(xué)習(xí)視頻分享:css視頻教程、web前端)