css.pdf

အသပငပတယ အကက code လက

  • No School
  • AA 1
  • 116

This preview shows page 9 - 12 out of 116 pages.

အသံုးျပဳႏိုင္ပါတယ္။ ေအာက္က code ေလးကို ၾကည့္လုိက္ပါ။ <html> <head> <title>CSS</title> <style type = "text/css" > .red_class { color : red ;} </style> </head> <p class = "red_class" > Hi! I am red class. </p> <p> Hi! I am normal. </p> CSS for starter , written by saturngod ( ) 9
Image of page 9

Subscribe to view the full document.

<p class = "red_class" > Hi! I am red class. </p> </html> အဲဒါဆိုရင္ Hi! I am red class ဆိုတဲ့ စာလံုးေတြက နီေနတာကို ေတြ႕မွာပါ။ ဒါေလးကိုေတာ့ ကိုယ္တိုင္ စမ္းၾကည့္ႏိုင္ပါတယ္။ ပံုေလးေတာ့ မျပေတာ့ဘူး။ အတူတူပဲမို႕ပါ။ class ကို dot(.) ေရွ႕မွာ ထားျပီး ေရးပါတယ္။ class ကို ေနာက္တစ္မ်ဳိးေရးလို႕ရပါတယ္။ ဥပမာ p tag မွာ သံုးထားတဲ့ class ဆိုရင္ p.red_class { color : red ;} ဆိုျပီး ေရးလို႕ရပါတယ္။ h3 မွာ သံုးထားရင္ h3.red_class { color : red ;} ဆိုျပီးေရးလိုက္ရံုပါပဲ။ ေအာက္က code ေလးကို ၾကည့္လုိက္ပါ။ <html> <head> <title>CSS</title> <style type = "text/css" > h3.red_class { color : red ;} </style> </head> <h3 class = "red_class" > Hi I am H3 </h3> <p class = "red_class" > Hi! I am red id. </p> <p> Hi! I am normal. </p> <p class = "red_class" > Hi! I am red id. </p> </html> အဲဒါကို ဒီလိုေလး ထြက္လာမွာပါ။ CSS for starter , written by saturngod ( ) 10
Image of page 10
p မွာ red_class လို႕ထည့္ထားေပမယ့္ css မွာ h3.red_class လို႕ေရးထားပါတယ္။ red_class လို႕ ေၾကျငာထားတဲ့ h3 ကိုပဲ select လုပ္မယ္လို႕ ဆိုလိုတာပါ။ How to add CSS ? အေပၚမွာတုန္းက ကၽြန္ေတာ္ ေျပာခဲ့ပါတယ္။ CSS ဘယ္လို ထည့္သြင္းရမယ္ဆိုတာကိုေပါ့။ <head> နဲ႕ </head> ၾကားမွာ style tag နဲ႕ ထည့္တယ္လို႕။ အဲဒါအျပင္ အျခား နည္းရိွပါေသးတယ္။ စုစုေပါင္း မ်ဳိးထည့္သြင္းလုိ႕ရပါတယ္။ 1. Internal Style Sheet 2. Inline Stye Sheet 3. External Style Sheet Internal Style Sheet ကၽြန္ေတာ္တုိ႕ internal Style Sheet အေၾကာင္းေျပာခဲ့ျပီးပါျပီ။ အေပၚမွာ သံုးခဲ့တာေတြ အားလံုးက Internal style sheet သေဘာတရားေတြပါ။ Inline Style Sheet ကၽြန္ေတာ္တုိ႕ေတြအေနနဲ႕
Image of page 11

Subscribe to view the full document.

Image of page 12
  • Fall '19

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern