Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

การใช้งานคุณสมบัติ border-top-width ใน CSS


คุณสมบัติ border-top-width

คุณสมบัติ border-top-width ใช้เปลี่ยนความกว้างของขอบบน ลองรันโค้ดต่อไปนี้เพื่อนำ border-top-width property ไปใช้:

ตัวอย่าง

<html>
  <head>
  </head>
  <body>
    <p style="border-top-width:6px; border-style:solid;">
      This is demo content. </p>
  </body>
</html>

ค่าที่ใช้ได้:

  • ความยาว: px, pt, cm, em, rem, ฯลฯ
  • คีย์เวิร์ด: thin, medium (ค่าเริ่มต้น), thick