Txhawm rau muab cov xim keeb kwm yav dhau los ntawm tag nrho cov ntaub ntawv, cov ntxhuav, nrog rau lawv cov kab, header cells thiab cov ntsiab lus hlwb hauv HTML, siv bgcolor attribute ntawm BODY, LUB ROOJ, TR, TH, TD ntsiab, feem. Tus cwj pwm no lees txais ib tus nqi uas tshaj qhov xim ntawm SRGB qhov chaw, qhia raws li tus lej hexadecimal ua ntej ntawm tus hash lossis lub cim mnemonic. Piv txwv li:
Kauj ruam 2
Siv cov keeb kwm yav dhau los ntawm BODY keeb kwm los txhais cov duab uas yuav yog keeb kwm yav dhau los ntawm tag nrho cov ntaub ntawv: Hauv txoj cai ntawm kev cais cov qauv thiab cov txheej txheem los txiav txim pom qhov pom ntawm hypertext cov ntaub ntawv, nws raug nquahu kom siv cov ntawv style. ntawm cov cwj pwm ntawm cov HTML ntsiab (raws li tau piav qhia hauv qeb 1 thiab 2) …
Kauj ruam 3
Teev cov xim tom qab ntawm ib qho twg siv cov cuab yeej CSS keeb kwm yav dhau los. Siv cov style ntaus cim los txhais cov ntsiab lus inline rau ib qhov, lossis ntxiv cov cai siv nrog cov xaiv kom tsim nyog rau cov ntawv style: ntsuab keeb kwm yav dhau los BODY {xim tom qab: # 00FF00; }
Kauj ruam 4
Txheeb xyuas cov duab keeb kwm yav dhau ntawm txhua lub ntsiab los yog pawg ntawm cov khoom siv siv CSS cov duab keeb kwm yav dhau los. Nws tus nqi yuav tsum yog URI txheeb xyuas cov khoom txuam nrog. Piv txwv li: BODY background-image {background-image: url ("myimage.gif")}
Kauj ruam 5
Teeb ntxiv cov kev cai rau kev tso saib tom qab cov duab ntawm cov ntawv sau. Siv qhov tom qab rov ua dua, tom qab txuas thiab tom qab-txoj hauj lwm CSS cov yam ntxwv. Qhov thib ib txhais tau cov kev xaiv tiling, qhov thib ob txhais lub ntsaws cov kab nrib tus kwv tij rau daim ntawv lossis ntaub ntawv pom kev sib tw, thiab qhov thib peb txhais tau qhov pib tshem tawm lossis teeb tsa tus kwv tij txheeb ze rau qhov txwv cov ciam. Txheeb xyuas CSS2 qhov tshwj xeeb ntawm w3c.org rau cov peev txheej tsim nyog rau cov khoom no.
Muaj tseeb txhua tus neeg tsim daim npog (rau phau ntawv nyob rau hauv InDesign) tau muaj lus nug thaum tsim qauv npog: Yuav ua li cas ntxig tus ncej, khoom ua kom zoo nkauj, poob cap kom cov keeb kwm yav dhau tsis pom, tab sis tsuas yog ib tus qauv pom?
Ntau zaus, thaum ua cov duab, nws tiav niam txiv tsim nyog yuav tsum tau rho tawm qee qhov tawg lossis, hloov, ntxiv nws. Tej zaum qhov kev nthuav dav no yuav kho kom tau lwm txoj kev kos duab, lossis nws tau dhau los ua cov duab tshwj xeeb