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

กำหนดขอบแบบ outset ด้วย CSS (border-style: outset)


คุณสมบัติ border-style: outset

เพื่อกำหนดขอบแบบ outset ด้วย CSS ให้ใช้คุณสมบัติ border-style ด้วยค่า outset

ตัวอย่าง

<html>
  <head>
  </head>
  <body>
    <p style="border-width:4px; border-style:none;">
      This is a border with none width. </p>
    <p style="border-width:4px; border-style:outset;">
      This is outset border. </p>
  </body>
</html>

ค่าสไตล์ขอบที่ใช้ได้:

  • none - ไม่มีขอบ
  • solid - เส้นทึบ
  • dotted - จุดๆ
  • dashed - ขีดขึง
  • double - สองเส้น
  • groove - ข้าวโพดแกะสลัก
  • ridge - ยtrice
  • inset - เข้าด้านใน
  • outset - ออกด้านนอก (3D effect)
  • hidden - ซ่อน