Cov txheej txheem:

Cascading Style Sheets txhais li cas?
Cascading Style Sheets txhais li cas?

Video: Cascading Style Sheets txhais li cas?

Video: Cascading Style Sheets txhais li cas?
Video: 4 Introduction to Cascading Style Sheets-THAI 2024, Kaum ib hlis
Anonim

CSS . Stands rau " Cascading Style Ntawv ." Cascading style nplooj ntawv yog siv los format lub layout ntawm Webpages. Lawv tuaj yeem siv tau txhais ntawv nyeem hom , tablesizes, thiab lwm yam ntawm cov nplooj ntawv Web uas yav tas los tsuas yog txhais hauv ib nplooj ntawv HTML.

Tsuas yog li ntawd, lub hom phiaj ntawm Cascading Style Sheets yog dab tsi?

CSS yog hom lus piav qhia txog kev nthuav tawm ntawm nplooj ntawv Web, suav nrog xim, layout, thiab fonts. Nws tso cai rau ib qho los hloov qhov kev nthuav qhia rau ntau hom khoom siv, xws li cov ntxaij vab tshaus loj, cov ntxaij vab tshaus me, lossis cov tshuab luam ntawv. CSS yog nyob ntawm HTML thiab tuaj yeem siv nrog txhua yam XML-based markuplanguage.

Ib tug kuj yuav nug, dab tsi yog hom ntawv sib txawv? Muaj peb hom stylesheets:

  • Internal - Muab tso rau ntawm nplooj ntawv uas nws interface nws yuav cuam tshuam.
  • Sab nraud - Muab tso rau hauv ib daim ntawv cais.
  • Inline - Muab tso rau hauv ib daim ntawv nws yuav cuam tshuam.

Kuj Paub, 3 hom CSS yog dab tsi?

Muaj peb hom CSS hauv qab no:

  • Inline CSS.
  • Internal CSS.
  • Sab nraud CSS.

CSS yog dab tsi thiab nws hom?

Cascading Style Sheet ( CSS ) yog siv los teeb tsa cov qauv hauv cov nplooj ntawv web uas muaj cov ntsiab lus HTML. Nws teev cov xim tom qab, font-loj, font-tsev neeg, xim, … thiab lwm yam khoom ntawm cov ntsiab lus hauv nplooj ntawv web. Muaj peb hom ntawm CSS uas tau muab hauv qab no: Inline CSS.

Pom zoo: