Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS
CSS
  1. CSS grid Property - Shorthand สำหรับ Grid Container

    grid เป็น Shorthand Property รวมหลายคุณสมบัติ Grid Container ในบรรทัดเดียว: grid-template-rows grid-template-columns grid-template-areas grid-auto-rows grid-auto-columns grid-auto-flow ตัวอย่าง <!DOCTYPE html> <html> <head> <style> .container { displ

  2. การใช้งาน linear-gradient() CSS Function

    ใช้ linear-gradient() สร้าง Gradient แบบเส้นตรงเป็น Background Image ตัวอย่าง <!DOCTYPE html> <html> <head> <style> #demo { height: 200px; background: linear-gradient(green, orange, maroon); } </style> </head> <bo

  3. CSS nav-right Property - นำทางด้วยปุ่มลูกศร

    คุณสมบัติ nav-right (ส่วนของ CSS3 UI Module) ระบุ Element ที่จะ Focus เมื่อกดปุ่มลูกศรขวา ตัวอย่าง <!DOCTYPE html> <html> <head> <style> button { position: absolute; } button#btn1 { top: 10%; left: 15%; nav-index

  4. การทำงานกับ Flexbox Elements ใน CSS

    สร้าง Flex Container ด้วย display: flex แล้ววาง Flex Items ไว้ข้างใน ตัวอย่าง <!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex; background-color: orange; } .mycontainer > div { background-col

  5. CSS Flex Item Properties - คุณสมบัติของ Flex Items

    คุณสมบัติของ Flex Items (ลูกของ Flex Container): order — ลำดับการแสดง flex-grow — อัตราการขยายเติมพื้นที่ว่าง flex-shrink — อัตราการหดตัวเมื่อพื้นที่ไม่พอ flex-basis — ขนาดเริ่มต้นก่อน Grow/Shrink flex — Shorthand ของ grow, shrink, basis align-self — จัดแนว Cross Axis แบบแต่ละ Item (Override align-

  6. CSS Grid Lines - เส้นกริดแนวนอนและแนวตั้ง

    Grid Lines คือเส้นแบ่งของ Grid ประกอบด้วย: Column Lines — เส้นระหว่าง Columns (แนวตั้ง) Row Lines — เส้นระหว่าง Rows (แนวนอน) ตัวอย่าง <!DOCTYPE html> <html> <head> <style> .container { display: grid; background-color: green;

  7. ใช้ CSS max-width ทำ Responsive Video Player

    ใช้ max-width: 100% และ height: auto ทำให้ Video Player Responsive ไม่เกินขนาดต้นฉบับ ตัวอย่าง <!DOCTYPE html> <html> <head> <meta name=viewport content=width=device-width, initial-scale=1.0> <style> video { max-width: 100%; heigh

  8. CSS Grid Layout - โมดูลการจัดวางแบบตาราง

    นอกจาก Flexbox แล้ว สามารถใช้ Grid Layout Module ออกแบบเว็บด้วย Grid แถวและคอลัมน์ องค์ประกอบของ Grid Layout: Grid Elements — Parent (Container) และ Child (Items) Grid Rows — เส้นแนวนอนของ Grid Items Grid Columns — เส้นแนวตั้งของ Grid Items Grid Gaps — ช่องว่างระหว่าง Rows และ Columns Grid Lines —

Total 1584 -คอมพิวเตอร์  FirstPage PreviousPage NextPage LastPage CurrentPage:39/80  20-คอมพิวเตอร์/Page Goto:1 33 34 35 36 37 38 39 40 41 42 43 44 45