ホームページ  >  記事  >  ウェブフロントエンド  >  CSSを使用してアウトラインの幅を設定する

CSSを使用してアウトラインの幅を設定する

王林
王林転載
2023-09-03 13:33:081206ブラウズ

使用 CSS 设置轮廓宽度

#outline-width プロパティは、アウトラインの幅を設定するために使用されます。その値は、border-width 属性と同様に、長さ、または Thin、Medium、Thick のいずれかの値である必要があります。

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:thin; outline-style:solid;">
         This text is having thin outline.
      </p>
      <br />
      <p style = "outline-width:thick; outline-style:dashed;">
         This text is having thick outline.
      </p>
      <br />
      <p style = "outline-width:5px; outline-style:dotted;">
         This text is having 5x outline.
      </p>
   </body>
</html>

以上がCSSを使用してアウトラインの幅を設定するの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事はtutorialspoint.comで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。