PHP前端开发

使用 CSS 设置轮廓的线条样式

百变鹏仔 3个月前 (09-20) #CSS
文章标签 轮廓

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>