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

เปลี่ยนความกว้างขอบล่างด้วย CSS (border-bottom-width)


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

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

ตัวอย่าง

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

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

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