Computer >> 컴퓨터 >  >> 프로그램 작성 >> CSS

CSS로 윤곽선 너비 설정


개요 너비 속성은 윤곽선의 너비를 설정하는 데 사용됩니다. 그 값은 길이 또는 얇음, 중간 또는 두꺼운 값 중 하나여야 합니다. , border-width 속성과 동일합니다.

예시

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