outline-style属性指定围绕元素的线条的样式。它可以采用以下值之一 -
您可以尝试运行以下代码来实现outline-style属性 -
<html> <head> </head> <body> <p style = "outline-width:thin; outline-style:solid;"> This text is having thin solid outline. </p> <br /> <p style = "outline-width:thick; outline-style:dashed;"> This text is having thick dashed outline. </p> <br /> <p style = "outline-width:5px;outline-style:dotted;"> This text is having 5x dotted outline. </p> </body> </html>
以上是CSS 轮廓样式属性的详细内容。更多信息请关注PHP中文网其他相关文章!