Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

กำหนดความกว้างของโครงร่างด้วย CSS


The outline-width คุณสมบัติใช้เพื่อกำหนดความกว้างของโครงร่าง ค่าควรมีความยาวหรือค่าใดค่าหนึ่งบาง ปานกลาง หรือหนา เช่นเดียวกับแอตทริบิวต์ 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>