源代碼
點擊運行
<!DOCTYPE html> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> <style> p { border-style:solid; } p.none {border-top-style:none;} p.dotted {border-top-style:dotted;} p.dashed {border-top-style:dashed;} p.solid {border-top-style:solid;} p.double {border-top-style:double;} p.groove {border-top-style:groove;} p.ridge {border-top-style:ridge;} p.inset {border-top-style:inset;} p.outset {border-top-style:outset;} </style> </head> <body> <p class="none">無上底邊界。</p> <p class="dotted">點上底邊界。</p> <p class="dashed">虛線上底邊界。</p> <p class="solid">實線上底邊界。</p> <p class="double">雙線上底邊界。</p> <p class="groove">凹槽上底邊界。</p> <p class="ridge">壟狀上底邊界。</p> <p class="inset">嵌入上底邊界。</p> <p class="outset">外凸上底邊界。</p> </body> </html>
運行結果