Cov duab, zoo li txhua lwm yam ntawm lub vev xaib, raug tso tawm los ntawm qhov browser raws li cov lus qhia ntxaws uas xa los ntawm tus neeg rau zaub mov. Cov lus qhia no tau sau rau hauv HTML (Cov Qauv Lus Cim Cim) thiab muaj "cim npe". Cov cim npe piav qhia hom ntawm txhua lub ntsiab ntawm nplooj ntawv web, lawv qhov chaw thiab tsos.
Cov Lus Qhia
Kauj ruam 1
Ua ntej koj yuav tsum muab cov duab xa mus rau tus neeg rau zaub mov. Qhov no tuaj yeem ua tiav siv FTP (File Transfer Protocol) los ntawm cov phiaj xwm tshwj xeeb. Cov kev pabcuam no hu ua cov neeg siv FTP - piv txwv li, FTP ntxim hlub, WS FTP, FlashFXP thiab lwm yam. Tab sis koj tuaj yeem rub tawm nws los ntawm cov ntaub ntawv tus thawj tswj hwm, uas yuav tsum nyob hauv pawg tswj hwm ntawm tus tswj hwm qhov chaw uas koj tus xaib. Tus tuav ntaub ntawv tso cai rau koj los upload cov ntaub ntawv los ntawm koj lub browser.
Kauj ruam 2
Tom qab ntawd, koj yuav tsum tso cov kab sib thooj hauv cov html-code ntawm nplooj ntawv xav tau. Ntawd yog, koj yuav tsum nrhiav nplooj ntawv no thiab qhib nws cov cai rau kho kom raug. Yog tias koj muaj nplooj ntawv ua ntaub ntawv, koj tuaj yeem qhib nws nrog tus sau ntawv yooj yim - piv txwv li, Notepad. Thiab yog tias koj siv txhua lub system los tswj lub xaib, tom qab ntawd hauv cov thawj coj ntawm lub system no, nrhiav cov nplooj ntawv kho thiab qhib nplooj ntawv uas xav tau hauv nws. Tom qab ntawd, nws tseem nyob qhov ntxig rau daim duab cim npe hauv qhov chaw koj xav tau ntawm nplooj ntawv thiab txuag cov kev hloov pauv.
Kauj ruam 3
Ntau txog qhov ntawm nws tus kheej - hauv nws daim ntawv yooj yim, nws tuaj yeem zoo li qhov no: Cov kab ntawv muaj ntau cov ntaub ntawv ntxiv - "tus cwj pwm". Tsuas muaj ib qho kev ntaus nqi uas xav tau rau daim duab cim - src. Nws qhia qhov browser chaw nyob uas nws yuav tsum tau txais cov ntaub ntawv muaj cov nyom cov nyom. Yog tias cov ntaub ntawv no nyob ntawm tus neeg rau zaub mov hauv daim nplaub tshev qub (lossis subfolder) raws li nplooj ntawv nws tus kheej, ces nws txaus los sau nws lub npe lossis txoj kev mus rau subfolder. Cov chaw nyob ntawd yog hu ua "tus txheeb ze". Thiab ib qho chaw nyob tiag yuav zoo li no:
--Aneother attribute - alt="Duab" - muaj cov ntawv uas pom nyob hauv daim tooltip rau nas hover: Lwm cov cwj pwm - npe ua tib yam: - Ob tus cwj pwm - qhov dav thiab qhov siab - teeb tsa qhov loj ntawm lub duab plaub uas browser yuav tso tawm cov duab: Cov cwj pwm no tsis tas yuav tsum ua, tab sis yog tias muaj qee yam ua txhaum thiab cov duab tsis tuaj yeem thauj, ces tag nrho lwm cov ntsiab lus ntawm nplooj ntawv yuav tawm ntawm qhov chaw, vim tias qhov browser tsis paub txog qhov ntev uas daim duab yuav tsum tau nyob hauv. Qhov loj me tau teev nyob rau hauv "pixels" - qhov no yog chav ntsuas tseem ceeb ntawm kev ntsuas siv hauv nplooj ntawv phab. - Tus cwj pwm ciam ciam qhia qhov dav ntawm ciam teb nyob ib ncig ntawm daim duab (hauv pixels): Yog tias cov duab tsim txuas, lub browser yuav kos ciam teb xiav ncig ntawm nws los vim. Txhawm rau tshem tawm ntawm nws, koj yuav tsum tau tsim lub ciam teb tus nqi rau xoom: - Ob tus cwj pwm tau teeb tsa kev nkag los ntawm daim duab los ntawm cov khoom sib txuas (piv txwv li, los ntawm kab ntawm cov ntawv sau) - hspace teev cov kab rov tav indentation (sab laug thiab sab xis), vspace - vertically (hauv qab thiab sab saum toj): - Cov no yog cov cwj pwm feem ntau siv, thiab muaj ntau dua 50 ntawm lawv rau cov ntawv no!