Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS
CSS
  1. CSS counter-increment Property

    ใช้คุณสมบัติ counter-increment เพื่อเพิ่มค่าตัวนับ (counter) ใน CSS ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          body {             counter-reset: section;      

  2. สร้าง Fade In Tooltip ด้วย CSS Animation

    ใช้ opacity และ transition เพื่อสร้าง tooltip แบบ fade in เมื่อ hover ตัวอย่าง <!DOCTYPE html> <html>    <style>       .mytooltip .mytext {          visibility: hidden;          width: 140px;    

  3. สร้างภาพวงกลมด้วย CSS

    หากต้องการสร้างภาพวงกลม ให้ใช้คุณสมบัติ border-radius: 50% ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          img {             border-radius: 50%;          

  4. สร้างภาพขนาดเล็ก (Thumbnail) ด้วย CSS

    หากต้องการสร้าง thumbnail image ให้ใช้คุณสมบัติ border ร่วมกับ padding และ border-radius ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          img {             border: 2px solid orang

  5. CSS counter-reset Property

    ใช้คุณสมบัติ counter-reset เพื่อสร้างหรือรีเซ็ตตัวนับ (counter) ใน CSS ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          body {             counter-reset: section;     &n

  6. สร้าง Tooltip ด้านบนด้วย CSS

    หากต้องการสร้าง tooltip ด้านบน ให้ใช้คุณสมบัติ bottom ใน CSS ตัวอย่าง <!DOCTYPE html> <html>    <style>       .mytooltip .mytext {          visibility: hidden;          width: 140px;       &n

  7. CSS animation-direction Property

    ใช้คุณสมบัติ animation-direction เพื่อกำหนดว่าแอนิเมชันควรเล่นไปข้างหน้า ถอยหลัง หรือสลับกัน ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          div {             width: 150px;  

  8. สร้างภาพมุมโค้งด้วย CSS

    หากต้องการสร้างภาพมุมโค้ง ให้ใช้คุณสมบัติ border-radius ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          img {             border-radius: 20px;          

  9. เพิ่มลูกศรด้านซ้ายของ Tooltip ด้วย CSS

    ใช้คุณสมบัติ right ใน CSS เพื่อเพิ่มลูกศรด้านขวาของ tooltip (ทำให้ลูกศรชี้ไปทางซ้าย) ตัวอย่าง <!DOCTYPE html> <html>    <style>       .mytooltip .mytext {          visibility: hidden;          width: 140px;

  10. เลือกทุก <div> และ <p> พร้อมกันด้วย CSS

    หากต้องการจัดสไตล์หลายองค์ประกอบพร้อมกัน ให้ใช้เครื่องหมายจุลภาค (,) คั่นแต่ละองค์ประกอบ ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          div, p {             color: blue;  

  11. เลือกทุก <p> ภายใน <div> ด้วย CSS

    ใช้เซเล็กเตอร์ element element (descendant combinator) เพื่อเลือกองค์ประกอบทั้งหมดภายในองค์ประกอบอื่น ตัวอย่าง <!DOCTYPE html> <html>    <head>       <style>          div p {             color: w

  12. สร้าง Tooltip ด้วย CSS

    Tooltip คือข้อความเล็กๆ ที่แสดงเมื่อผู้ใช้วางเมาส์เหนือข้อความ ใช้เพื่อให้ข้อมูลเพิ่มเติมช่วยให้ผู้ใช้เข้าใจง่ายขึ้น ตัวอย่าง ลองรันโค้ดด้านล่างเพื่อเรียนรู้การสร้าง tooltip <!DOCTYPE html> <html>    <style>       #mytooltip #mytext {      

  13. สร้าง Tooltip แสดงเมื่อ hover ด้วย CSS

    ใช้คุณสมบัติ visibility เพื่อสร้าง tooltip ที่แสดงเมื่อ hover เมาส์ ตัวอย่าง <!DOCTYPE html> <html>    <style>       #mytooltip #mytext {          visibility: hidden;          width: 100px;     &n

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