W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <style> p.ex1 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: thin; } p.ex2 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: medium; } p.ex3 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: thick; } p.ex4 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: 4px; } </style> </head> <body> <h1>outline-width 属性</h1> <p class="ex1">细的轮廓。</p> <p class="ex2">中等的轮廓。</p> <p class="ex3">粗的轮廓。</p> <p class="ex4">4 像素的粗轮廓。</p> </body> </html>