CSS 参考手册
CSS outline-width 属性
设置轮廓的宽度
源代码:
点击运行 »
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> p.one { border: 1px solid red; outline-style: solid; outline-width: thin; } p.two { border: 1px solid red; outline-style: dotted; outline-width: 3px; } </style> </head> <body> <p class="one">This is some text in a paragraph.</p> <p class="two">This is some text in a paragraph.</p> <p><b>注意:</b> 如果只有一个 !DOCTYPE 指定 IE8 支持 outline 属性。</p> </body> </html>
运行结果:
点击运行 »