Home  >  Article  >  Web Front-end  >  Set the width, line style, and color properties of an outline in a single statement using CSS

Set the width, line style, and color properties of an outline in a single statement using CSS

PHPz
PHPzforward
2023-09-04 15:09:04706browse

使用 CSS 在单个语句中设置轮廓的宽度、线条样式和颜色属性

The outline property is a shorthand property that allows you to specify values ​​for multiple properties of the outline, such as width, line style, and color.

Example

<html>
   <head>
   </head>
   <body>
      <p style = "outline:thin solid green;">
         This text is having thin solid freen outline.
      </p>
      <br />
      <p style = "outline:thick dashed #009900;">
         This text is having thick dashed green outline.
      </p>
      <br />
      </p>
   </body>
</html>

The above is the detailed content of Set the width, line style, and color properties of an outline in a single statement 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