Dab tsi yog hover thiab nquag hauv CSS?
Dab tsi yog hover thiab nquag hauv CSS?

Video: Dab tsi yog hover thiab nquag hauv CSS?

Video: Dab tsi yog hover thiab nquag hauv CSS?
Video: Полный процесс обертывания и прикрепление режущей наклейки к кабине галопа 2024, Kaum ib hlis
Anonim

Qhov: nquag selector yog siv los xaiv thiab style tus nquag txuas. Ib qhov txuas ua nquag thaum koj nias rau nws. Tswv yim: Siv tus:link selector rau style txuas mus rau nplooj ntawv tsis tau mus xyuas, tus: mus xyuas xaiv rau cov kab txuas rau cov nplooj ntawv mus xyuas, thiab cov: hover selector rau style links thaum koj nas hla lawv.

Tsis tas li ntawd, dab tsi yog qhov ua haujlwm hauv CSS?

: nquag yog a CSS pseudo-chav kawm. Nws qhia thiab xaiv ib lub caij raws li lub xeev-tus nquag xeev-thiab yog siv los siv cov qauv rau ib lub caij thaum nws phim lub xeev ntawd. Qhov: nquag pseudo-chav kawm yog chav kawm dynamic uas siv tau thaum lub caij ua haujlwm los ntawm tus neeg siv.

Qhov thib ob, kev siv hover hauv CSS yog dab tsi? Tus:hover selector yog pseudo-chav kawm uas tso cai rau koj tsom mus rau lub ntsiab lus uas tus cursor lossis mus pointer yog hover. Nws yog ib qho nyuaj rau siv lub:hover selector ntawm cov khoom siv kov. Pib hauv IE4,:hover selector tsuas yog siv nrog cov cim npe. Txij li IE7, tus:hover selector tuaj yeem siv nrog txhua yam.

Ib yam li ntawd, koj tuaj yeem nug, hover txhais li cas CSS?

Txhais thiab siv Cov: hover selector yog siv los xaiv cov ntsiab lus thaum koj nas hla lawv. Tswv yim: The: hover selector tuaj yeem siv rau txhua lub ntsiab lus, tsis yog ntawm kev sib txuas nkaus xwb.

Yuav ua li cas koj override txuas xim hauv CSS?

Siv CSS hloov Txuas Xim Nrog qhov no CSS , qee qhov browsers yuav hloov txhua yam ntawm cov txuas (default, nquag, ua raws, thiab hover) rau dub, thaum lwm tus yuav hloov tsuas yog lub neej ntawd xim . Siv cov pseudo-chav kawm nrog ib txoj hnyuv ua ntej lub npe chav kawm hloov txuas hauv tej xeev. Plaub pseudo-chav kawm cuam tshuam txuas.

Pom zoo: