Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS
CSS
  1. วิธีสร้าง Responsive Testimonials ด้วย CSS

    Responsive Testimonial Cards: การ์ดรับรอง/รีวิวที่ปรับตัวตามหน้าจอ ใช้ Flexbox/Float + Media Query ทำให้รูปโปรไฟล์และข้อความจัดเรียงแนวนอนบน Desktop และซ้อนแนวตั้ง (center) บน Mobile (max-width: 500px) โค้ดตัวอย่าง <!DOCTYPE html> <html> <head> <meta name=viewport content=wid

  2. CSS Image Opacity สำหรับทุก Browser รวม IE 8 และต่ำกว่า

    Cross-browser Image Opacity: รองรับ IE 8 และ Browser เก่าทั้งหมด เหมือนบทก่อนหน้าแต่เน้น <img> tag โดยเฉพาะ ใช้ opacity (standard) + filter: alpha(opacity=...) (IE 5-9) + -moz-opacity (Firefox < 0.9) + -khtml-opacity (Safari 1.x) โค้ดตัวอย่าง <!DOCTYPE html> <html> <head>

  3. Advanced Selectors ใน CSS

    Advanced CSS Selectors: เลือก Element ได้ละเอียดและยืดหยุ่น รวม Combinators, Attribute selectors, Pseudo-classes, Pseudo-elements ที่ทรงพลังกว่า class/id selectors ธรรมดา Combinators Selectorชื่อคำอธิบาย A BDescendantB ภายใน A (ทุกระดับ) BDirect ChildB เป็นลูกโดยตรงของ A A + BAdj

  4. การระบุกฎการแบ่งคำ (Word Breaking Rules) ด้วย CSS3

    Word-break Property: ควบคุมการขึ้นบรรทัดใหม่ของข้อความยาว Property word-break กำหนดว่าข้อความยาว (URL, คำยาว, string ไม่มี space) จะขึ้นบรรทัดใหม่อย่างไรเมื่อพื้นที่ไม่พอ โค้ดตัวอย่าง <!DOCTYPE html> <html> <head> <style> body { font-family: Segoe UI, Tahoma, Geneva, V

  5. Pseudo-classes และ CSS Classes ทั้งหมด

    CSS Pseudo-classes: เลือก Element ตามสถานะพิเศษ Pseudo-class keywords (ขึ้นต้นด้วย :) เลือก element ตาม state: :hover, :focus, :active, :visited, :first-child, :nth-child(), :not(), :checked, :disabled, :valid, :invalid ฯลฯ โค้ดตัวอย่าง: Link States <!DOCTYPE html> <html> <head>

  6. CSS Opacity ที่ทำงานในทุก Browser (Cross-browser Opacity)

    Cross-browser Opacity: รองรับ IE เก่า, Firefox เก่า, Safari เก่า Property opacity (standard) รองรับ Firefox 0.9+, Safari 2, Opera 9+, IE 9+, Chrome ทุก version สำหรับ browser เก่ากว่า ใช้ vendor prefixes และ filter โค้ดตัวอย่าง Cross-browser <!DOCTYPE html> <html> <head> <sty

  7. การแปลงรูปแบบ 2D ขององค์ประกอบด้วย CSS3

    2D Transformation: เปลี่ยนรูปทรงองค์ประกอบ 2 มิติ CSS3 2D Transforms ใช้ transform property กับฟังก์ชัน: matrix, translate, scale, rotate, skew เปลี่ยน visual rendering ไม่กระทบ layout flow ตารางฟังก์ชัน 2D Transform Sr.No.Value & Description 1matrix(n,n,n,n,n,n) – Matrix transforms 6 ค่า

  8. 2D Transform Functions ใน CSS

    2D Transform Functions: Translate, Scale, Rotate, Skew ฟังก์ชัน 2D transform ใช้กับ property transform เปลี่ยนรูปทรง/ตำแหน่งองค์ประกอบแบบ 2 มิติ ไม่กระทบ document flow ฟังก์ชันหลัก 4 ตัว Functionคำอธิบายตัวอย่าง Translateเลื่อนตาม X และ Y axistranslate(30px, 20px) Scaleขยาย/หด ขนาด X,

  9. การจัดกึ่งกลางแนวนอนและแนวตั้งด้วย Flexbox ใน CSS3

    Flexbox Centering: จัดกึ่งกลางสมบูรณ์แบบ 2 แกน ใช้ display: flex + justify-content: center (main axis) + align-items: center (cross axis) จัด child ให้อยู่กึ่งกลาง container ทั้งแนวนอนและแนวตั้ง โค้ดตัวอย่าง <!DOCTYPE html> <html> <head> <style> body { font-family: Seg

  10. การเปลี่ยนความกว้างคอลัมน์ตามขนาดหน้าจอด้วย CSS

    Responsive Column Width: Media Query ปรับ Width ตาม Breakpoint ใช้ @media query ตรวจสอบ viewport width เปลี่ยน width ของคอลัมน์ เช่น 50% → 100% เมื่อจอแคบกว่า 700px โค้ดตัวอย่าง <!DOCTYPE html> <html> <head> <style> body { font-family: Segoe UI, Tahoma, Geneva, Verdana

  11. การทำ Multiple Transitions ด้วย CSS3

    Multiple Transitions: Transition หลาย Property พร้อมกัน ใช้ transition shorthand ระบุหลาย property คั่นด้วย comma แต่ละ property มี duration/timing/delay แยกกันได้ โค้ดตัวอย่าง <!DOCTYPE html> <html> <head> <style> .container div { width: 300px; height: 100px; bo

  12. CSS3 Transition Shorthand Property

    Transition Shorthand: รวม property, duration, timing, delay ในบรรทัดเดียว transition shorthand รวม 4 longhand properties สามารถระบุหลาย transitions คั่นด้วย comma โค้ดตัวอย่าง <!DOCTYPE html> <html> <head> <style> .container div { width: 300px; height: 100px; bor

Total 1584 -คอมพิวเตอร์  FirstPage PreviousPage NextPage LastPage CurrentPage:7/80  20-คอมพิวเตอร์/Page Goto:1 2 3 4 5 6 7 8 9 10 11 12 13