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

cssweb developmentfront end technology更新于 2025/8/22 19:24:17

outline 属性是一种简写属性,允许您指定轮廓的宽度、线条样式和颜色等多个属性的值。

示例

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

相关文章


有用资源