Cov keeb kwm yav dhau los nyob rau ntawm qhov chaw ntawm cov nplooj ntawv web, nyob ntawm tus tsim siv, tuaj yeem teeb tsa los ntawm qhov teev xim, los yog los ntawm kev sib txuas ntawm cov duab ua ke nrog qhov sib ntxiv ntawm nws qhov kev tso chaw. Qhov no tuaj yeem ua ncaj qha hauv cov HTML cim npe, hauv cov CSS sib cais hauv cov seem ntawm cov chaw, lossis hauv cov ntawv cais nrog cov qauv piav qhia.
Cov Lus Qhia
Kauj ruam 1
Qhib cov peev txheej ntawm lub nris uas siv rau hauv koj lub xaib los ua keeb kwm ntawm nws cov nplooj ntawv. Thaum siv qee txoj kev tswj hwm, lub block no, raws li txoj cai, raug faib rau hauv cov ntawv cais. Lub kaw lus tswj nws tus kheej muaj cov cuab yeej siv los kho nws ncaj qha hauv qhov browser. Ua raws li cov kev qhia tshwj xeeb, cov txheej txheem no tuaj yeem muab sau sib txawv - piv txwv li, dhau los ntawm nplooj ntawv kho. Yog tias koj tsis siv cov kev tswj hwm lub tshuab, tom qab ntawv cov ntawv sib thooj yuav tsum rub tawm rau koj lub khoos phis tawm thiab qhib hauv ib qho khoos phis tawm. Nws yog qhov zoo dua los siv cov kws sau ntawv tshwj xeeb HTML, tab sis koj tuaj yeem siv cov Notepad uas yooj yim dua.
Kauj ruam 2
Ntxiv bgcolor cwj pwm rau lub cim npe ntawm lub cev taw qhia qhov xim ntxoov ntxoo yog tias keeb kwm yav dhau los ntawm nplooj ntawv yuav tsum yog xim, tsis yog duab. Piv txwv li:
Ntawm no yog tsaus xim txiv kab ntxwv raws li keeb kwm yav dhau. Tsis yog txhua cov ntawv nyeem ("mnemonic") lub npe ntawm qhov ntxoov ntxoo tuaj yeem raug lees paub los ntawm qhov browser, yog li nws yog qhov zoo dua los siv hexadecimal xim code. Piv txwv, cov cai FF8C00 sib raug rau cov xim txiv kab ntxwv tsaus:
Kauj ruam 3
Siv cov cwj pwm tom qab hloov ntawm bgcolor ntawm lub cev tag yog tias cov keeb kwm yav dhau los yuav tsum tau teeb tsa los ntawm cov duab tsis yog xim. Piv txwv, yog tias cov ntawv nrog cov duab keeb kwm yav dhau los hu ua bgPic
Kauj ruam 4
Muab cov lus piav qhia style rau hauv cov header ntawm koj qhov chaws code yog tias koj xav tau keeb kwm yav dhau los ntawm nplooj ntawv siv CSS. Piv txwv li, CSS cov lus piav qhia style uas hloov cov xim txiv kab ntxwv tsaus teev hauv lub cev lossis raws li keeb kwm yav dhau yuav zoo li no:
lub cev {xim tom qab: DarkOrange;}
Thiab koj tuaj yeem tsim cov duab keeb kwm yav dhau los nrog cov lus piav qhia hauv qab no:
lub cev {keeb kwm yav dhau: # FF8C00 url (images / bgPic.gif) rov ua-y;}
Ntawm no, ntxiv rau qhov txuas mus rau daim duab, xim keeb kwm yav dhau (# FF8C00) kuj tseem qhia - yog tias muaj ntau qhov chaw ntawm nplooj ntawv tsis muaj cov xim keeb kwm yav dhau, tom qab ntawd lawv yuav pleev xim rau hauv cov xim ntxoov ntxoo teev ntawm no. Qhov rov hais y-parameter qhia qhov rov ua dua ntawm cov duab keeb kwm yav dhau los ntsug (raws Y Y). Yog tias koj yuav tsum rov ua cov duab rov qab ua ntej, tom qab ntawd koj yuav tsum siv qhov rov ua tus nqi-x, thiab txwv tsis pub rov ua dua ntawm cov qauv - tsis rov ua dua. Koj tuaj yeem tso cov lus piav qhia style ua ntej lub cim npe uas tau kaw lub taub hau ib feem ntawm HTML code.
Kauj ruam 5
Txuag cov kev hloov pauv ua nyob rau ntawm nplooj ntawv editor, lossis txuag thiab xa cov ntaub ntawv rub tawm rov qab rau tus neeg rau zaub mov yog tias cov cai raug kho hauv cov ntaub ntawv ntawm koj lub computer.