Txhua qhov chaw hauv Is Taws Nem tuaj yeem tsis txawv tshwj xeeb hauv kev tsim thiab xim, tab sis kuj hais txog kev fonts uas siv rau nws. Nrog kev pab ntawm cov font, koj tuaj yeem xaiv cov nqe lus hais, ua rau cov ntawv sau ua lub ntsej muag, thov txig rau thaj chaw uas raug xaiv, thiab qee qhov chaw tseem khij ib yam. Txawm tias thawj tus me nyuam yaus muaj peev xwm ua cov haujlwm no hauv cov ntawv kho kom raug, cia saib seb koj yuav hloov li cas cov ntawv ntawm cov ntawv ntawm koj tus kheej lub vev xaib.
Cov Lus Qhia
Kauj ruam 1
Qhib koj cov CSS stylesheet. Raws li txoj cai, tag nrho cov kev txwv ntawm lub xaib tsim, suav nrog cov ntawv nyeem yog nyob rau ntawd. Sau cov yam ntxwv ntawm tus font siv cim npe ntawm tsev neeg font. Hauv cov ntawv style, koj tuaj yeem hloov cov yam ntxwv hauv qab no:
font-family - qhia hom font uas koj xav siv. Cov ntawv sau nrov tshaj plaws yog Times New Roman, Tahoma, Verdana, Arial;
font-loj - qhia kom meej cov font loj koj xav tau nyob rau hauv daim ntawv ntawm tus xov tooj sib xws, tsis txhob hnov qab ntxiv pt. Piv txwv, font-loj: 10pt;
font-style - qhia kom meej hom ntawm tus font, yuav tsum ua li nws ib txwm los yog cov ntawv qaij;
font-variant - qhia qhov teeb meem ntawm cov cim font, kaus mom me;
font-weight - qhia qhov hnyav ntawm font, seb nws yuav ua tuab, bold, thiab lwm yam.
Kauj ruam 2
Koj tuaj yeem hloov cov font ntawm cov ntawv sau ncaj qha hauv cov ntaub ntawv tshwj xeeb HTML yog tias koj tsis xav tau cov stylesheet los siv rau kev pom zoo tib yam rau tag nrho lub xaib. Txhawm rau ua qhov no, siv cov cim txwv tsis pub nyob hauv kab ntawv ntxiv lawm, tab sis ncaj qha rau ntu ntawm cov ntawv uas koj xav hloov. Piv txwv li: Nov yog koj qhov ntawv
Nyob rau hauv cov ntaub ntawv no, daim font tag tau muaj peb yam:
xim - font xim;
ntsej muag - font hom;
qhov loj me - cov ntawv me.
Hloov cov ntawv nyeem uas koj xav tau, koj tau txais qee yam zoo li hauv qab no:
Nov yog koj cov ntawv nyeem
Kauj ruam 3
Npaj taub hau rau thaum tsim nyog. Cov kab ntawv sau feem ntau yog nyob ib puag ncig los ntawm cov pib los ntawm
ua ntej
nyob ntawm seb cov header loj npaum li cas koj xav tau. H1 - qhov no yog lub ntsiab lus tseem ceeb ntawm nplooj ntawv, ntsig txog, qhov loj tshaj plaws; H6 yog qhov me me. Cov ntawv cim npe yog paired cim npe, yog li koj xav tau tso ob qho qhib H thiab ib qho kaw.
Kauj ruam 4
Siv cov ntawv xaiv sau ntawv ntxiv uas tsim nyog. Koj tuaj yeem:
- ntsiab ntu ib kab ntawm cov ntawv ua tib zoo siv cov ntawv sib dhos, lossis
- siv italics siv cov cim npe khub, lossis
- khij hauv kab ntawv tseem ceeb ntawm kab ntawv uas siv cov kab ua kom sib haum