Yuav Ua Li Cas Hloov Xim Txuas Hauv Html

Cov txheej txheem:

Yuav Ua Li Cas Hloov Xim Txuas Hauv Html
Yuav Ua Li Cas Hloov Xim Txuas Hauv Html

Video: Yuav Ua Li Cas Hloov Xim Txuas Hauv Html

Video: Yuav Ua Li Cas Hloov Xim Txuas Hauv Html
Video: qhia txog tus neeg qhov muag g pom kev thiab pw g tsaug zog yuav ua li cas 2024, Tej zaum
Anonim

Novice web developers feem ntau xav txog hloov cov tsos ntawm hyperlinks. Qhov no yog qhov ntuj heev, vim hais tias lub ncauj lus ntawm qhov tsim qauv ntawm kev sib txuas tau tas li tsa los ntawm cov neeg tsim qauv tsim qauv thiab qauv.

Yuav ua li cas hloov xim txuas hauv html
Yuav ua li cas hloov xim txuas hauv html

Cov Lus Qhia

Kauj ruam 1

Los ntawm lub neej ntawd, kev sib txuas tau kos xiav (# 0000FF), muaj kab hauv qab thiab hloov xim thaum lawv hloov mus rau xim (# 800080), nrog cov kev sib txuas tseem ceeb hauv liab (# FF0000). Qhov chaw teeb tsa rau txhua qhov txuas ntawm nplooj ntawv hauv lawv lub xeev sib txawv yog nqa tawm siv cov cuab yeej HTML txheem - peb tus cwj pwm ntawm daim pib. Hloov cov qauv tsim ntawm ib qho txuas ib tus neeg tuaj yeem nqa tau los ntawm kev hloov pauv qhov tseem ceeb ntawm cov cwj pwm ntawm cov kab sib xws.

Kauj ruam 2

Muaj peb txoj hauv kev los tsim qhov tseem ceeb rau cov cwj pwm style. Hauv txhua qhov xwm txheej, koj yuav tsum qhia lub cim xim thiab kos kab hauv qab, uas tuaj yeem yog hom ntawv hexadecimal code hauv tag nrho (#FFFFFF) lossis cov tsiaj ntawv luv (#fff) hloov pauv. Cov xim kuj tuaj yeem sau ua hom RGB (101, 010, 111) lossis tus qauv html tus nqi ntawm cov qauv cwj pwm, uas yog, cov ntsiab lus tseem ceeb (grey, liab, thiab lwm yam). Cov kev tsim txiaj no tau tsim rau qhov txuas, alink thiab vlink attributes.

Kauj ruam 3

Kev xaiv kab ntawv txuas ntawm tus cim txiav txim siab cov xim ntawm txhua qhov hyperlinks ntawm nplooj ntawv. Yog tias tus cwj pwm tsis tau teev meej, lub neej ntawd yog qhov kev xav.

Kauj ruam 4

Kev xaiv alink ntaus cim npe ntawm tus cim txiav txim siab cov xim ntawm txhua qhov kev sib txuas siab, uas yog, hloov xim ntawm txuas mus rau ib qho tau teev tseg thaum nyem rau ntawm nws. Cov ntawv qhia ua khoom noj uas taw tes rau nplooj ntawv tam sim no qhib hauv qhov browser tseem suav tias yog hyperlinks nquag. Yog tias tus cwj pwm tsis tau teev meej, lub neej ntawd yog qhov kev xav.

Kauj ruam 5

Kev xaiv vlink ntaus nqi ntawm tus cim txiav txim siab cov xim ntawm txhua qhov kev sib ntsib mus saib hyperlinks, uas yog, hloov xim ntawm cov ntawv txuas tom qab txhaj rau nws. Yog tias tus cwj pwm tsis tau teev meej, lub neej ntawd yog qhov kev xav.

Kauj Ruam 6

Koj tuaj yeem siv CSS cov khoom nyob rau hauv daim ntawv HTML los hloov xim ntawm txhua qhov hyperlinks. Lawv tau sau nyob nruab nrab ntawm cov ntawv ua khub thiab tau teev nyob nruab nrab ntawm qhov xav tau cim npe thiab. Cov khoom tau teeb tsa ntawm A: tus xaiv, nrog xyuas pseudo-chav kawm, uas qhia meej cov xim ntawm txuas mus xyuas, nquag, uas qhia meej cov xim ntawm kev sib txuas, lossis hover, uas qhia meej cov xim sib txuas thaum hovering dua lawv.

Kauj Ruam 7

Yog tias koj xav hloov cov xim ntawm ib qho txuas ib tus, thiab tsis yog txhua lub sijhawm, koj yuav tsum siv cov cwj pwm rau cov cim npe, yog li txuas cov cwj pwm rau ib qho tshwj xeeb. Tus nqi ntawm tus cwj pwm hauv qhov no yog xim xim, cov lus sib txawv yog li hauv qab no:, uas yog, koj tuaj yeem siv ib txoj hauv plaub ntawm kev coj los cim ib qho xim.

Pom zoo: