Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS
CSS
  1. การใช้งาน CSS align-content: flex-end

    ใช้คุณสมบัติ align-content พร้อมค่า flex-end เพื่อจัด flex lines ชิดด้านท้ายของ cross axis ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .mycontainer {             display: fle

  2. บทบาทของ CSS justify-content: flex-end

    ใช้คุณสมบัติ justify-content พร้อมค่า flex-end เพื่อจัดตำแหน่ง flex items ชิดด้านท้าย (end ของ main axis) ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .mycontainer {           &nbs

  3. การใช้งาน CSS align-items: flex-start

    ใช้คุณสมบัติ align-items พร้อมค่า flex-start เพื่อจัดตำแหน่ง flex items ชิดด้านบน (start ของ cross axis) ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .mycontainer {            

  4. CSS flex Property

    คุณสมบัติ flex เป็น shorthand property รวม flex-grow, flex-shrink, และ flex-basis ใน property เดียว ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .mycontainer {             dis

  5. CSS align-content Property

    ใช้คุณสมบัติ align-content เพื่อจัดตำแหน่ง flex lines ตามแกน cross axis ตัวอย่าง: space-between <!DOCTYPE html> <html>     <head>       <style>          .mycontainer {             display: flex;

  6. บทบาทของ CSS flex-wrap: nowrap

    ใช้คุณสมบัติ flex-wrap พร้อมค่า nowrap เพื่อป้องกันไม่ให้ flex items wrapping (ค่าเริ่มต้น) ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .mycontainer {             display: fl

  7. เพิ่มขอบสีให้ปุ่มด้วย CSS

    หากต้องการเพิ่มขอบสีให้ปุ่ม ให้ใช้คุณสมบัติ border ใน CSS ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .button {             background-color: yellow;       &nb

  8. สร้าง Hoverable Buttons ด้วย CSS

    ใช้ CSS :hover selector เพื่อสร้างปุ่มที่มีเอฟเฟกต์เมื่อ hover ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .btn {             background-color: yellow;       &

  9. ตั้งค่าความเร็ว Hover Effect ด้วย CSS

    ใช้คุณสมบัติ transition-duration เพื่อตั้งค่าความเร็วของ hover effect และใช้ :hover selector สำหรับ hover state ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .btn {            

  10. สร้าง Button Group มีขอบด้วย CSS

    ใช้คุณสมบัติ border ร่วมกับ float: left เพื่อสร้าง button group ที่มีขอบ ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .btn {             color: black;       &nb

  11. บทบาทของ CSS flex-wrap: wrap

    ใช้คุณสมบัติ flex-wrap พร้อมค่า wrap เพื่อให้ flex items wrapping ไปบรรทัดใหม่เมื่อพื้นที่ไม่พอ ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .mycontainer {             display

  12. การใช้งาน CSS grid-row-gap Property

    ใช้คุณสมบัติ grid-row-gap เพื่อกำหนดช่องว่างระหว่างแถวใน CSS Grid ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .container {             display: grid;       &nb

  13. สร้าง Image Filters ด้วย CSS

    ใช้คุณสมบัติ filter เพื่อสร้างเอฟเฟกต์กรองภาพ เช่น blur, contrast, brightness ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          img {             height: auto;      

  14. พลิกภาพเมื่อ Hover ด้วย CSS

    ใช้คุณสมบัติ transform ใน CSS เพื่อพลิกภาพ ตัวอย่างพลิกแนวนอนเมื่อ hover ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .myimg:hover {             transform: scaleX(-1);  

  15. CSS object-fit Property

    ใช้คุณสมบัติ object-fit ใน CSS เพื่อปรับขนาดรูปภาพหรือวิดีโอให้พอดีกับ container ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          .myimg {             width:250px;     &

Total 1584 -คอมพิวเตอร์  FirstPage PreviousPage NextPage LastPage CurrentPage:44/80  20-คอมพิวเตอร์/Page Goto:1 38 39 40 41 42 43 44 45 46 47 48 49 50