Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript
JavaScript
  1. รวมขีดขึง (dashed) เข้าไปในขอบด้วย CSS

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

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

    คุณสมบัติ border-style ใช้คุณสมบัติ border-style เพื่อกำหนดสไตล์ของขอบ: ตัวอย่าง <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:soli

  3. กำหนดขอบแบบจุดๆ (dotted) ด้วย CSS (border-style)

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

  4. กำหนดความกว้างของรูปภาพด้วย CSS (width)

    คุณสมบัติ width สำหรับรูปภาพ คุณสมบัติ width ใช้กำหนดความกว้างของรูปภาพ รับค่าเป็นความยาวหรือเปอร์เซ็นต์ หากให้ค่าเป็น % จะคำนวณตามกล่องที่รูปภาพอยู่ ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อกำหนดความกว้างของรูปภาพ: <html> <head> </head> <body> <img style=border:2px soli

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

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

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

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

  7. กำหนดสี สไตล์ และความกว้างขอบในคุณสมบัติเดียวด้วย CSS (border shorthand)

    คุณสมบัติ border (Shorthand) คุณสมบัติ border ให้คุณระบุสี สไตล์ และความกว้างของขอบในคุณสมบัติเดียว ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อระบุ border property: <html> <head> </head> <body> <p style=border:3px solid green;> This example is showing shorthand pr

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

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

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

    คุณสมบัติ border-left-style คุณสมบัติ border-left-style ใช้เปลี่ยนสไตล์ของขอบซ้าย ลองรันโค้ดต่อไปนี้เพื่อนำ border-left-style ไปใช้: ตัวอย่าง <html> <head> </head> <body> <p style=border-width:3px; border-left-style:solid;> Example showing left border &

  10. กำหนดขอบแบบจุดๆ (dotted) ด้วย CSS

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

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

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

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

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

  13. กำหนดขอบแบบขีดขึง (dashed) ด้วย CSS

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

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

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

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

    คุณสมบัติ border-width คุณสมบัติ border-width ใช้กำหนดความกว้างของขอบ (ไม่ใช่เปลี่ยนสี ต้นฉบับเขียนผิด) ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อนำ border-width ไปใช้: <html> <head> </head> <body> <p style=border-width:3px; border-style:solid;> Example showing b

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

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

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

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

  18. เปลี่ยนสีลิงก์ที่กำลังคลิกอยู่ด้วย CSS (:active)

    Pseudo-class :active เพื่อเปลี่ยนสีของลิงก์ที่กำลังคลิกอยู่ ให้ใช้ pseudo-class :active ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเปลี่ยนสีของลิงก์ที่กำลังคลิก: <html> <head> <style> a:active { color: #FF00CC; } </style> </head> <body>

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

    คุณสมบัติ border-collapse คุณสมบัติ border-collapse ระบุว่าเบราว์เซอร์ควรควบคุมลักษณะของขอบที่ติดกันหรือให้แต่ละเซลล์รักษาสไตล์ของตัวเอง ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของ border-collapse property: <html> <head> <style> table.one { border-colla

  20. กำหนดระยะห่างระหว่างเซลล์ตารางด้วย CSS (border-spacing)

    คุณสมบัติ border-spacing คุณสมบัติ border-spacing ระบุความกว้างระหว่างเซลล์ตาราง รับค่า 1 หรือ 2 ค่า หน่วยเป็นความยาว ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อกำหนดความกว้างของเซลล์ตาราง: <html> <head> <style> table.one { border-collapse: separate; width: 300px;

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