Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript
JavaScript
  1. เพิ่มหรือลดความหนาของฟอนต์ด้วย CSS (font-weight)

    คุณสมบัติ font-weight คุณสมบัติ font-weight ให้ฟังก์ชันการระบุว่าฟอนต์จะหนาแน่เพียงไหน ค่าที่เป็นไปได้: normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900 <html> <head> </head> <body> <p style=font-weight:bold;>This font is bold.</p

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

    คุณสมบัติ font-size คุณสมบัติ font-size ใช้เพิ่มหรือลดขนาดของฟอนต์ ใช้ควบคุมขนาดของฟอนต์ ค่าที่เป็นไปได้: xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, ขนาดในพิกเซล หรือเปอร์เซ็นต์ <html> <head> </head> <body> <p style=font-size:15

  3. การใช้งานคุณสมบัติ font ใน CSS

    คุณสมบัติ font (Shorthand) คุณสมบัติ font ใช้เป็น shorthand เพื่อกำหนดคุณสมบัติฟอนต์หลายอย่างพร้อมกัน เช่น font family, size, style เป็นต้น ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ font: <html> <head> </head> <body> <p style=font:italic small

  4. กำหนดน้ำหนักฟอนต์ด้วย CSS (font-weight)

    คุณสมบัติ font-weight คุณสมบัติ font-weight ใช้เพิ่มหรือลดความหนาของฟอนต์ ระบุได้ว่าฟอนต์จะหนาแน่เพียงไหน ค่าที่เป็นไปได้: normal, bold, bolder, lighter, 100-900 (ทุก 100) <html> <head> </head> <body> <p style=font-weight:bold;>This font is bold.</p>

  5. เพิ่มหรือลดขนาดฟอนต์ด้วย CSS (font-size)

    คุณสมบัติ font-size คุณสมบัติ font-size ใช้เพิ่มหรือลดขนาดฟอนต์ ใช้ควบคุมขนาดของฟอนต์ ค่าที่เป็นไปได้: xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, ขนาดในพิกเซล หรือเปอร์เซ็นต์ <html> <head> </head> <body> <p style=font-size:15px;

  6. คุณสมบัติ font แบบ shorthand สำหรับกำหนดฟอนต์ใน CSS

    คุณสมบัติ font (Shorthand) คุณสมบัติ font ใช้เป็น shorthand เพื่อกำหนดคุณสมบัติฟอนต์หลายอย่างพร้อมกัน เช่น font family, size, style เป็นต้น ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ font: <html> <head> </head> <body> <p style=font:italic small

  7. การใช้งานคุณสมบัติ font-family ใน CSS

    คุณสมบัติ font-family คุณสมบัติ font-family ใช้เปลี่ยนหน้าตาของฟอนต์ ค่าที่เป็นไปได้คือชื่อฟอนต์ใดๆ <html> <head> </head> <body> <p style=font-family:georgia,garamond,serif;> This text is rendered in either georgia, garamond, or the default serif font

  8. คุณสมบัติ background แบบ shorthand สำหรับกำหนดพื้นหลังใน CSS

    Shorthand Property: background คุณสามารถใช้คุณสมบัติ background เพื่อกำหนดคุณสมบัติพื้นหลังทั้งหมดพร้อมกัน เช่น ตำแหน่งภาพ การซ้ำ เป็นต้น ตัวอย่าง <html> <head> </head> <body> <p style=background:url(/images/pattern1.gif) repeat fixed;> This paragraph h

  9. ทำให้ภาพพื้นหลังซ้ำด้วย CSS (background-repeat)

    คุณสมบัติ background-repeat คุณสมบัติ background-repeat ใช้ควบคุมการซ้ำของภาพในพื้นหลัง ใช้ค่า no-repeat หากไม่ต้องการให้ภาพซ้ำ ภาพจะแสดงเพียงครั้งเดียว ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ background-repeat: <html> <head> <style> body {

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

    คุณสมบัติ background-color คุณสมบัติ background-color ใช้กำหนดสีพื้นหลังขององค์ประกอบ ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ background-color: <html> <head> </head> <body> <p style=background-color:blue;> This text has a blue backg

  11. กำหนดตำแหน่งภาพพื้นหลังด้วย CSS (background-position)

    คุณสมบัติ background-position เพื่อกำหนดตำแหน่งภาพพื้นหลัง ให้ใช้คุณสมบัติ background-position ตัวอย่าง ตัวอย่างนี้ตั้งตำแหน่งภาพพื้นหลังห่างจากด้านซ้าย 80 พิกเซล: <html> <head> <style> body { background-image: url(/css/images/css.jpg); background-posit

  12. กำหนด Background Attachment ด้วย CSS

    คุณสมบัติ background-attachment เพื่อกำหนด background-attachment ให้ใช้คุณสมบัติ background-attachment Background attachment กำหนดว่าภาพพื้นหลังจะคงที่ (fixed) หรือเลื่อนไปพร้อมหน้าเว็บ (scroll) ตัวอย่าง: ภาพพื้นหลังคงที่ (fixed) ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ background-attach

  13. การใช้งานคุณสมบัติ background-attachment ใน CSS

    คุณสมบัติ background-attachment คุณสมบัติ background-attachment ใช้ควบคุมการเลื่อนของภาพในพื้นหลัง ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ background-attachment: <!DOCTYPE html> <html> <head> <style> body { background-image: url(/css/

  14. การใช้งานคุณสมบัติ background แบบ shorthand ใน CSS

    คุณสมบัติ background (Shorthand) คุณสมบัติ background ใช้เป็น shorthand เพื่อกำหนดคุณสมบัติพื้นหลังหลายอย่างพร้อมกัน เช่น ภาพ ตำแหน่ง การซ้ำ เป็นต้น ตัวอย่าง <html> <head> </head> <body> <p style=background:url(/images/pattern1.gif) repeat fixed;> This

  15. เปลี่ยนหน้าตาฟอนต์ด้วย CSS (font-family)

    คุณสมบัติ font-family เพื่อเปลี่ยนหน้าตาฟอนต์ ให้ใช้คุณสมบัติ font-family ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ font-family: <html> <head> </head> <body> <p style=font-family:georgia,garamond,serif;> Demo content </p> <

  16. ทำให้ฟอนต์เป็นตัวเอียง (Italic) ด้วย CSS

    คุณสมบัติ font-style เพื่อทำให้ฟอนต์เป็นตัวเอียง ให้ใช้คุณสมบัติ font-style ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ font-style: <html> <head> </head> <body> <p style=font-style:italic;> This text is in italic style </p> <

  17. สร้างเอฟเฟกต์ Small-caps ด้วย CSS

    คุณสมบัติ font-variant เพื่อสร้างเอฟเฟกต์ small-caps (ตัวอักษรเล็กแทนตัวพิมพ์เล็ก) ให้ใช้คุณสมบัติ font-variant ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ font-variant ใน CSS: <html> <head> </head> <body> <p style=font-variant:small-caps;>

  18. วิธีกำหนดขนาดฟอนต์ด้วยหน่วย vmin ใน CSS

    หน่วย vmin คืออะไร? vmin (viewport minimum) คือหน่วยวัดสัมพัทธ์กับขนาดมุมมอง (viewport) 1vmin = 1% ของมิติที่เล็กกว่าระหว่างความกว้างและความสูงของ viewport ตัวอย่าง: กำหนดขนาดฟอนต์ด้วย vmin <html> <head> </head> <body> <div style=position:relative; left:90px; to

  19. Pica คืออะไร? วิธีกำหนดขนาดฟอนต์ด้วยหน่วย pica ใน CSS

    Pica (pc) คืออะไร? Pica เป็นหน่วยวัดขนาดในการพิมพ์ 1 pica เทียบเท่ากับ 12 points ดังนั้น 1 นิ้ว = 6 picas ตัวอย่าง: กำหนดขนาดฟอนต์ด้วย pica <html> <head> </head> <body> <div style=position:relative; left:10px; top:3px; background-color:yellow; font-size:3pc;>

  20. กำหนดสีพื้นหลังขององค์ประกอบด้วย CSS

    คุณสมบัติ background-color เพื่อกำหนดสีพื้นหลังขององค์ประกอบ ให้ใช้คุณสมบัติ background-color ตัวอย่าง ลองรันโค้ดต่อไปนี้เพื่อเรียนรู้การทำงานของคุณสมบัติ background-color: <html> <head> </head> <body> <p style=background-color:blue;> This text has a bl

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