Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript
JavaScript
  1. สร้างขอบที่ดูเหมือนถูกแกะสลักเข้าไปในหน้าด้วย CSS (border-style: groove)

    คุณสมบัติ border-style: groove ใช้คุณสมบัติ border-style ด้วยค่า groove เพื่อกำหนดขอบที่ดูเหมือนถูกแกะสลักเข้าไปในหน้า ลองรันโค้ดต่อไปนี้เพื่อนำ border-style property ไปใช้: ตัวอย่าง <html> <head> </head> <body> <p style=border-width:4px; border-style:none;>

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

    คุณสมบัติ border-style: inset เพื่อกำหนดขอบแบบ inset ด้วย CSS ให้ใช้คุณสมบัติ border-style ด้วยค่า inset ตัวอย่าง <html> <head> </head> <body> <p style=border-width:4px; border-style:none;> This is a border with none width. </p> <p style=bo

  3. คุณสมบัติ padding-bottom ใน CSS

    คุณสมบัติ padding-bottom คุณสมบัติ padding-bottom ระบุ padding ด้านล่างขององค์ประกอบ ตั้งค่า padding ด้านล่าง (space) รับค่าเป็นความยาวหรือเปอร์เซ็นต์ ตัวอย่าง <html> <head> </head> <body> <p style=padding-bottom: 10px; border:1px solid red;> This is a

  4. คุณสมบัติ padding-top ใน CSS

    คุณสมบัติ padding-top คุณสมบัติ padding-top ระบุ padding ด้านบนขององค์ประกอบ ตั้งค่า padding ด้านบน รับค่าเป็นความยาวหรือเปอร์เซ็นต์ ตัวอย่าง <html> <head> </head> <body> <p style=padding-top: 10px; border:1px solid red;> This is a paragraph with a spec

  5. กำหนด CSS margin ทั้งหมดในการประกาศเดียว (margin shorthand)

    คุณสมบัติ margin (Shorthand) คุณสมบัติ margin กำหนดพื้นที่รอบองค์ประกอบ HTML สามารถใช้ค่าลบได้เพื่อทับซ้อนเนื้อหา ระบุ shorthand property สำหรับตั้งค่า margin ทั้งหมดในการประกาศเดียว ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อกำหนด margins: <html> <head> </head> <body> <p

  6. กำหนดขอบแบบ 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

  7. เปลี่ยนสไตล์ขอบล่างด้วย CSS (border-bottom-style)

    คุณสมบัติ border-bottom-style คุณสมบัติ border-bottom-style ใช้เปลี่ยนสไตล์ของขอบล่าง ลองรันโค้ดต่อไปนี้เพื่อนำ border-bottom-style property ไปใช้: ตัวอย่าง <html> <head> </head> <body> <p style=border-width:4px; border-bottom-style:dashed;> This is dem

  8. เปลี่ยนความกว้างขอบล่างด้วย 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

  9. เปลี่ยนสีขอบล่างด้วย CSS (border-bottom-color)

    คุณสมบัติ border-bottom-color คุณสมบัติ border-bottom-color ใช้เปลี่ยนสีของขอบล่าง ลองรันโค้ดต่อไปนี้เพื่อนำ border-bottom-color property ไปใช้: ตัวอย่าง <html> <head> <style> p.demo { border: 4px solid; border-bottom-color: #FF0000; } </st

  10. เปลี่ยนสีขอบบนด้วย CSS (border-top-color)

    คุณสมบัติ border-top-color คุณสมบัติ border-top-color ใช้เปลี่ยนสีของขอบบน ลองรันโค้ดต่อไปนี้เพื่อนำ border-top-color property ไปใช้: ตัวอย่าง <html> <head> <style> p.demo { border: 3px solid; border-top-color: #FF0000; } </style> <

  11. การใช้งานคุณสมบัติ border-right-style ใน CSS

    คุณสมบัติ border-right-style คุณสมบัติ border-right-style ใช้เปลี่ยนสไตล์ของขอบขวา ลองรันโค้ดต่อไปนี้เพื่อนำ border-right-style property ไปใช้: ตัวอย่าง <html> <head> </head> <body> <p style=border-width:4px; border-right-style:dashed;> This is demo con

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

    คุณสมบัติ 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

  13. กำหนดสีขอบด้วย CSS (border-color)

    คุณสมบัติ border-color คุณสมบัติ border-color ระบุสีของขอบ ลองรันโค้ดต่อไปนี้เพื่อนำ border-color property ไปใช้: ตัวอย่าง <html> <head> <style> p.demo { border: 2px dashed; border-color: #800000; } </style> </head> <body>

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

    คุณสมบัติ border-right-width คุณสมบัติ border-right-width ใช้เปลี่ยนความกว้างของขอบขวา ลองรันโค้ดต่อไปนี้เพื่อนำ border-right-width property ไปใช้: ตัวอย่าง <html> <head> </head> <body> <p style=border-right-width:6px; border-style:solid;> This is demo

  15. กำหนดความกว้างขอบด้วย CSS (border-width)

    คุณสมบัติ border-width คุณสมบัติ border-width ให้คุณกำหนดความกว้างของขอบองค์ประกอบ ค่าของคุณสมบัตินี้อาจเป็นความยาวใน px, pt, cm หรือตั้งค่าเป็น thin, medium หรือ thick ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อกำหนดความกว้างขอบด้วย CSS: <html> <head> </head> <body> <p st

  16. กำหนด margin ขวาขององค์ประกอบด้วย CSS (margin-right)

    คุณสมบัติ margin-right คุณสมบัติ margin-right ใช้กำหนด margin ด้านขวาขององค์ประกอบ รับค่าเป็นความยาว, เปอร์เซ็นต์, หรือ auto ลองรันโค้ดต่อไปนี้เพื่อกำหนด margin ขวา: ตัวอย่าง <html> <head> </head> <body> <p style=margin-right: 10px; border:2px solid red;>

  17. เปลี่ยนสีขอบซ้ายด้วย CSS (border-left-color)

    คุณสมบัติ border-left-color คุณสมบัติ border-left-color ใช้เปลี่ยนสีของขอบซ้าย ลองรันโค้ดต่อไปนี้เพื่อนำ border-left-color property ไปใช้: ตัวอย่าง <html> <head> <style> p.demo { border: 3px solid; border-left-color: #FF0000; } </style>

  18. การใช้งานคุณสมบัติ 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.

  19. การใช้งานคุณสมบัติ border-left-color ใน CSS

    คุณสมบัติ border-left-color คุณสมบัติ border-left-color ใช้เปลี่ยนสีของขอบซ้าย ลองรันโค้ดต่อไปนี้เพื่อนำ border-left-color property ไปใช้: ตัวอย่าง <html> <head> <style> p.demo { border: 4px solid; border-left-color: #FF0000; } </style>

  20. กำหนดสไตล์ขอบด้วย CSS (border-style)

    คุณสมบัติ border-style เพื่อกำหนดสไตล์ของขอบ ให้ใช้คุณสมบัติ border-style คุณสมบัติ border-style ให้คุณเลือกสไตล์ขอบได้ดังนี้: none: ไม่มีขอบ solid: ขอบเป็นเส้นทึบเดียว dotted: ขอบเป็นจุดๆ dashed: ขอบเป็นขีดขึงสั้นๆ double: ขอบเป็นสองเส้นทึบ groove: ขอบดูเหมือนถูกแกะสลักเข้าไปในหน้า ridge: ขอบดูเห

Total 5941 -คอมพิวเตอร์  FirstPage PreviousPage NextPage LastPage CurrentPage:195/298  20-คอมพิวเตอร์/Page Goto:1 189 190 191 192 193 194 195 196 197 198 199 200 201