Home  >  Article  >  Web Front-end  >  Set outline color using CSS

Set outline color using CSS

WBOY
WBOYforward
2023-09-02 23:33:03768browse

使用 CSS 设置轮廓颜色

outline-color property allows you to specify the color of the outline. Its value should be a color name, hexadecimal color, or RGB value, like the color and border-color properties.

Example

You can try running the following code to implement the outline-color property -

<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>

The above is the detailed content of Set outline color using CSS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete