Koj tuaj yeem hloov kho qhov loj me ntawm cov duab uas pom ntawm nplooj los ntawm kev qhia meej cov cwj pwm tsim nyog rau daim pib
uas yog lub luag hauj lwm rau kev qhia cov duab ntawm cov nplooj ntawv HTML. Nce los yog tsawg zuj zus yog ua tiav los ntawm qhov dav thiab qhov sawv.
Ntxig ib daim duab
Ua ntej ua ntej kho, ntxiv ib cov duab rau ntawm nplooj los ntawm kev qhia lub npe
… Txhawm rau kho cov ntaub ntawv HTML, koj yuav tsum qhib nplooj ntawv hauv txhua phau ntawv kho tawm. Txoj cai-nias rau ntawm cov ntaub ntawv thiab xaiv "Qhib Nrog" cwj pwm - "Notepad". Koj tuaj yeem hais tau lwm cov editor uas yooj yim dua rau koj siv rau kev hloov pauv cov cai.
Mus rau ntawm seem ntawv thiab nrhiav cov pib
… Yog tias cov duab tseem tsis tau ntxiv rau nplooj ntawv, sau cov cai hauv qab no:
Txoj hauv kev rau cov duab cov ntaub ntawv tuaj yeem yog tus txheeb ze lossis tsis muaj tseeb. Qhov alt="Duab" tus cwj pwm yog lub luag haujlwm rau lub npe ntawm daim duab thiab ntxiv cov lus tseem ceeb rau nws, uas yuav ua rau pom thaum tus nas pointer dhau daim duab.
Hloov ntawm qhov loj me
Txhawm rau ua kom pom cov duab, teeb tsa qhov tsim nyog dav thiab qhov siab rau nws los ntawm kev ntxiv cov cwj pwm rau cov duab cim:
Qhov dav ntsuas tau sib raug rau qhov dav ntawm daim duab, thiab qhov siab muaj qhov taw qhia ntawm daim duab qhov siab. Hauv qhov no, thaum nplooj ntawv qhib, ib daim duab nrog qhov dav ntawm 300 pixels thiab qhov siab ntawm 350 pixels yuav tshwm nyob rau hauv browser qhov rai. Koj tuaj yeem ntxiv rau hspace thiab vspace cov cwj pwm los hloov cov chaw teeb tsa cov qauv ntawm nplooj ntawv:
Hauv cov lus piav qhia no, kab rov tav (hspace) thiab ntsug (vspace) margins los ntawm cov duab tau teev tseg. Txhua cov ntawv nyeem ntxiv rau nplooj ntawv yuav raug spaced 5 pixels tav toj los ntawm cov duab thiab 10 pixels vertically. Tus cwj pwm ciam teb yog lub luag haujlwm rau tsim 1 1 pixel ciam teb nyob ib ncig ntawm cov duab.
Nws yuav tsum raug sau tseg tias qhov loj me ntawm cov duab tuaj yeem tsim tsis yog nyob rau hauv pixels xwb, tab sis kuj yog ib feem pua txheeb ze rau qhov loj me ntawm lub browser qhov rai. Piv txwv li:
Raws li kev ua haujlwm ntawm cov cai no, cov duab yuav raug ncab mus txog txhua qhov dav ntawm lub qhov rais. Nws yog tsim nyog sau cia tias daim duab nyob rau hauv rooj plaub no yuav ua rau muaj kev cuam tshuam. Qhov ntsuas loj ntawm daim duab yog nyob ntawm qhov zoo ntawm daim duab nws tus kheej.
Txuag cov kev hloov pauv tau siv "Cov Ntaub Ntawv" - "Txuag" ua haujlwm ntawm "Notepad" lub qhov rais. Tshawb cov zaub ntawm daim duab hauv qhov browser qhib los ntawm qhib cov HTML los ntawm txoj cai nyem thiab xaiv xaiv "Qhib Nrog". Hauv daim ntawv teev cov kev xaiv tau xaiv, xaiv qhov program uas koj siv los xauj hauv Is Taws Nem. Koj tuaj yeem hloov kho cov ntawv HTML ib lub sijhawm twg los kho qhov luaj li cas.