主頁
CSS
CSS 輪廓
輪廓顏色
Tryit: 不同的輪廓顏色
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> p.ex1 { border: 2px solid black; outline-style: solid; outline-color: red; } p.ex2 { border: 2px solid black; outline-style: dotted; outline-color: blue; } p.ex3 { border: 2px solid black; outline-style: outset; outline-color: grey; } </style> </head> <body> <h2>The outline-color Property</h2> <p>The outline-color property is used to set the color of the outline.</p> <p class="ex1">A solid red outline.</p> <p class="ex2">A dotted blue outline.</p> <p class="ex3">An outset grey outline.</p> </body> </html>