海量收录 · 12,310+ 源码 / 模板 / 插件 / 教程,付款后立即下载 开通会员享折扣| 我的订单| 客服 QQ 923457156
前端开发教程

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

2025-01-13 29 次浏览 免费资源

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 设置轮廓的线条样式的详细内容,更多请关注双恒网络其它相关文章!

免费下载无需付费,点击即可获取
去下载