Cov xim keeb kwm yav dhau los rau ntawm qhov chaw tsis yog tsuas yog ua rau cov neeg nyiam saib xwb, tab sis kuj qhia txog lub siab ntawm cov khoom. Cov chaw nyob rau thaj chaw tsim cov kev paub tsis meej nrog rau keeb kwm yav dhau los hauv lub ntuj ntawm lub hnub qub, cov khoom siv kev lom zem zoo siab nrog cov nplua nuj ntawm cov xim sov, lub vev xaib ntawm cov kev pabcuam hauv nroog qhia lawv cov ua haujlwm nrog cov qauv tsim thiab keeb kwm ntawm feem ntau grey thiab xiav ntxoov. Cov. Muaj ob peb txoj hauv kev los ua koj tus kheej lub vev xaib xim.
Nws yog qhov tsim nyog
- - koj lub xaib
- - tsawg kawg theem pib paub ntawm HTML
Cov Lus Qhia
Kauj ruam 1
Txhawm rau ua cov xim tawv xim tom qab, pom cov ntawv cim hauv qab no thiab hauv cov HTML code. Hloov thawj daim cim zoo li no:
Hauv kev tsim kho no, # FFFF33 yog qhov chaws tshaj tawm xim daj.
Kauj ruam 2
Cov xim ntawm nplooj ntawv tuaj yeem hais meej tsis yog nrog tus lej xwb, tab sis kuj muaj cov lus tshwj xeeb - cov npe ntawm cov xim thawj. Txhawm rau taw cov xim tom qab nrog ib lo lus, sau cov cai hauv qab no:
Ntawm no "daj" yog lub npe ntawm cov xim daj.
Kauj ruam 3
Hloov chaw cim xim daj lossis nws lub npe, ntxiv cov qauv tsim qauv ntawm cov xim tom qab koj xav tau daim pib siv qhov hint no:
liab - "liab" ("# FF0000")
xiav - "xiav" ("# 0000FF")
ntsuab - "ntsuab" ("# 008000")
liab dawb - "xim liab" ("# FFC0CB")
ntshav - "violet" ("# EE82EE")
txiv kab ntxwv - "txiv kab ntxwv" ("# FFA500")
dub - "dub" ("# 000000")
Kauj ruam 4
Yog tias koj xav kom muaj cov duab rov tom qab ntawm lub vev xaib tom qab, tom qab ntawd xaiv daim duab me me, tawm tsam cov ntawv yuav pom tseeb. Luam tawm daim duab rau lub xaib. Txhawm rau tso cov duab raws li keeb kwm yav dhau los, sau tus lej no rau hauv lossis
Hauv cov khoom nkag no, hloov "/images/fon.jpg" taw qhia txoj hauv kev rau daim duab xav tau.
Kauj ruam 5
Cov xim ntawm cov nplooj ntawv web tuaj yeem tsim tsis yog nyob rau hauv HTML code, tab sis kuj siv CSS cov cwj pwm. Siv cov cwj pwm no, koj tsis tas yuav teev keeb kwm yav dhau los hauv tus lej ntawm nplooj ntawv tshiab txhua lub sijhawm. Txhawm rau txhais cov keeb kwm yav dhau los ntawm CSS ntawm cov ntawv cim npe thiab tso cov nkag zoo li qhov no:
lub cev {
tom qab: # FFFF33;
}
Ntawm no cov xim tom qab tau teeb los ntawm keeb kwm yav dhau los.
Kauj Ruam 6
Yog tias koj xav ua keeb kwm yav dhau los hauv CSS siv duab, tom qab ntawd thiab sau cov kab ntawv hauv qab no, hloov '/images/fon.jpg' kev qhia txog txoj hauv kev rau cov duab uas xav tau:
lub cev {
duab tom qab: url ('/ cov duab / fon.jpg');
rov tso keeb kwm yav dhau los: rov ua dua;
}
Ntawm no cov duab keeb kwm yav dhau los txiav txim siab cov duab keeb kwm yav dhau los, tom qab rov ua dua - rov ua dua ntawm daim duab. Nyob rau sab.