CSS outline-color 属性

cssweb developmentfront end technology更新于 2025/8/23 19:56:17

outline-color 属性允许您指定轮廓的颜色。其值可以是颜色名称、十六进制颜色或 RGB 值,与 color 和 border-color 属性类似。

示例

您可以尝试运行以下代码来实现 outline-color 属性 −

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:thin; outline-style:solid;outline-color:blue">
         This text is having thin solid blue outline.
      </p>
      <br />
   </body>
</html>

相关文章


有用资源