Yuav Ua Li Cas Nyias Muaj Nyias Qhov Rais

Cov txheej txheem:

Yuav Ua Li Cas Nyias Muaj Nyias Qhov Rais
Yuav Ua Li Cas Nyias Muaj Nyias Qhov Rais

Video: Yuav Ua Li Cas Nyias Muaj Nyias Qhov Rais

Video: Yuav Ua Li Cas Nyias Muaj Nyias Qhov Rais
Video: Nkauj ntseeg tawm tshiab 2020 Nyias muaj nyias koob hmoov by .NIAM (NYIAJ TSWV) 2024, Hlis ntuj nqeg
Anonim

Feem ntau ntawm nplooj ntawv hauv Is Taws Nem muaj cov kab txuas rau lwm nplooj ntawv, mus ua cov ntawv rub tawm, rau duab, thiab lwm yam. Qee qhov hyperlinks qhib hauv tib lub qhov rais, so - hauv ib qhov tshiab. Cia peb pom yuav ua li cas qhib kev sib txuas hauv lub qhov rais cais.

Yuav ua li cas nyias muaj nyias qhov rais
Yuav ua li cas nyias muaj nyias qhov rais

Cov Lus Qhia

Kauj ruam 1

Hauv HTML (HyperText Markup Language), uas yog siv los piav txog cov nplooj ntawv web, cov kev qhia kom luam tawm cov ntawv txuas zoo li qhov no: Link textThis yog qhov kev xaiv yooj yim. Cov lus qhia zoo li no hauv HTML yog hu ua "cim npe" thiab, raws li txoj cai, txhua daim ntawv teev muaj cov ntaub ntawv ntxiv - "tus cwj pwm". Hauv qhov kev sim ua kom yooj yim tshaj plaws ntawm qhov txuas, tsuas muaj ib qho yog - "href". Nws muaj qhov URL ntawm nplooj ntawv (lossis ntaub ntawv) uas yuav tsum qhia yog tias tus qhua raws qhov txuas no. Thiab tus cwj pwm uas qhia nyob rau hauv lub qhov rais no cov ntaub ntawv tshiab no yuav tsum muab tso tawm kom pom yog "phiaj". Yog tias koj tuaj yeem sau qhov chaw nyob hauv href attribute (yog tias nws yog qhov tseeb,), tsuas yog plaub qhov sib txawv muaj peev xwm teev nyob rau hauv lub hom phiaj: _self - nplooj ntawv yuav tsum tau ntim rau hauv tib qhov txuas, tau thauj mus rau hauv no heev niam txiv qhov rai; _top - nplooj ntawv yuav tsum muab ntim rau hauv tib lub qhov rai. Ntxiv mus, yog tias lub qhov rais no tau muab faib ua cov thav ntawv, tom qab ntawd tag nrho lawv yuav tsum tau rhuav tshem thiab nplooj ntawv tshiab yuav tsum tau tsuas yog thav duab hauv lub qhov rai no;

Kauj ruam 2

Yog li, txhawm rau ua kom qhov txuas qhib rau hauv lub qhov rais cais, tus lossis tag yuav tsum zoo li qhov no: Cov ntawv txuas

Kauj ruam 3

Muaj lwm hom ntawm lub qhov rais - "modal windows". Cov no yog cov qhov rai uas, yog tias lawv twb tau tshwm sim, lawv yuav thaiv tag nrho lwm cov browser qhov rais kom txog thaum lawv ua lawv txoj haujlwm. Thiab lawv txoj haujlwm yog ua kom tus qhua ua qee yam - piv txwv, nkag mus rau tus username thiab password, lossis nias lub pob ntawv lees paub, lossis sau daim ntawv nug, thiab lwm yam. Kuj tseem muaj kev thaj yeeb nyab xeeb rau kev siv lub qhov rooj (lossis "tham"). Tau kawg, qhib kev sib txuas hauv cov qhov rais txawv cais yog qhov haujlwm nyuaj dua thiab yuav tsum siv CSS (Cascading Style Sheets) nrog JavaScript ntxiv rau HTML. Kev siv coj piv txwv yooj yim tuaj yeem pom ntawm no -

Pom zoo: