ホームページ  >  記事  >  ウェブフロントエンド  >  CSSのアウトライン幅プロパティ

CSSのアウトライン幅プロパティ

WBOY
WBOY転載
2023-08-31 10:13:061069ブラウズ

CSS 轮廓宽度属性

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

例 H2>
<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 までご連絡ください。