Yuav Ua Li Cas Teev Cov Xim Tom Qab

Cov txheej txheem:

Yuav Ua Li Cas Teev Cov Xim Tom Qab
Yuav Ua Li Cas Teev Cov Xim Tom Qab

Video: Yuav Ua Li Cas Teev Cov Xim Tom Qab

Video: Yuav Ua Li Cas Teev Cov Xim Tom Qab
Video: yuav ua li cas ua neej zoo vam meej 2024, Hlis ntuj nqeg
Anonim

Feem ntau, lub hauv paus xim tom qab ntawm lub vev xaib tau tsim los siv Cascading Style Sheets (CSS). Tsawg feem ntau, qhov muaj peev xwm ntawm cov lus HTML (hyperText Markup Language - "hypertext markup language") yog siv rau qhov no. Qee zaum CSS cov ntsiab lus piav qhia tau muab tso rau sab hauv HTML cim npe.

Yuav ua li cas teev cov xim tom qab
Yuav ua li cas teev cov xim tom qab

Cov Lus Qhia

Kauj ruam 1

Siv bgcolor cwj pwm ntawm lub cim npe ntawm lub cev yog tias koj xav kom nws yooj yim li sai tau qhia qhov xim tom qab thiab txo qhov kev hloov pauv koj cov cai. Cov lus piav qhia ntawm txhua nplooj ntawv nplooj ntawv tau muab tso rau hauv nplooj ntawv qhov chaw sab hauv thaiv cov HTML code uas pib nrog pib thiab xaus nrog daim pib. Lub bgcolor attribute yog qhia meej hauv daim pib qhib thiab muaj cov npe muaj nqis xim (piv txwv, Liab lossis Chocolate) lossis nws cov lej xim sib luag (# FF0000 lossis # D2691E, feem). Hauv nws daim ntawv yooj yim, xws li daim pib sau tau, piv txwv, zoo li no: Los yog zoo li qhov no: Ob qho kev xaiv teeb xim liab tib xim rau tom qab ntawm cov ntawv.

Kauj ruam 2

Siv cov cuab yeej xim keeb kwm yav dhau los yog tias koj xav tau xim tom qab ntawm daim ntawv siv cov lus piav qhia hom - cov qauv no muaj ntau dua. Cov lus piav qhia cov tswv yim muaj peev xwm suav nrog qhov chaws ntawm daim ntawv, lossis sau rau hauv ib daim ntawv cais nrog rau css txuas ntxiv. Ib qhov txuas rau cov ntaub ntawv sab nraud tau muab tso rau hauv kab ntawv ntu ntawm nplooj ntawv (nruab nrab ntawm cov ntawv thiab cov cim npe) thiab zoo li qee yam zoo li no: @import "style.css"; tom qab ntawd @import "style.css"; yuav tsum tau hloov, piv txwv, nrog cov ntawv hauv qab no: lub cev {keeb kwm yav dhau los xim: Liab;} Ntawm no lub cev qhia tias cov lus hauv kab npauj ciab uas txhais cov xim tom qab liab hais txog tib HTML lub cev. Thiab ntawm no muaj ntau lub tshuab rau kev txiav txim siab cov xim duab ntxoov ntxoo, tab sis tus lej naj npawb feem ntau siv: lub cev {keeb kwm yav dhau los xim: # FF0000;}

Kauj ruam 3

Hloov cov cuab yeej xim keeb kwm yav dhau los nrog rau keeb kwm yav dhau los piav qhia kom pom ntau cov qauv tom qab. Piv txwv, yog tias, ntxiv rau tom qab ntawm qee qhov xim, yuav tsum tau kos duab rau hauv daim ntawv thim rov qab. Cov lus piav qhia no yuav zoo li qhov no: lub cev {keeb kwm yav dhau los: Liab url (img / BGimage.gif) tsis rov ua dua;}

Kauj ruam 4

Raws li cov kev xaiv uas koj tau xaiv, npaj cov kev cai uas teev cov xim tom qab ntawm daim ntawv, thiab muab tshuaj txhuam rau hauv qhov chaw ntawm nplooj ntawv. Qhov no tuaj yeem ua tiav, piv txwv li, siv tus kws kho mob online ntawm cov nplooj ntawv ntawm cov txheej txheem kev tswj hwm cov ntsiab lus lossis hauv ib phau ntawv nyeem.

Pom zoo: