Yuav Ua Li Cas Rau Embed Duab Nyob Rau Hauv Lub Vev Xaib

Cov txheej txheem:

Yuav Ua Li Cas Rau Embed Duab Nyob Rau Hauv Lub Vev Xaib
Yuav Ua Li Cas Rau Embed Duab Nyob Rau Hauv Lub Vev Xaib

Video: Yuav Ua Li Cas Rau Embed Duab Nyob Rau Hauv Lub Vev Xaib

Video: Yuav Ua Li Cas Rau Embed Duab Nyob Rau Hauv Lub Vev Xaib
Video: Yuav ua li cas thiaj thov tau daim ntawv tso cai los qhib business nyob rau lub nroog Minneapolis 2024, Hlis ntuj nqeg
Anonim

Txhua yam uas tus qhua pom ntawm nplooj ntawv ntawm lub xaib raug tso tawm los ntawm qhov browser raws li cov lus qhia ntxaws uas xa mus rau nws los ntawm tus neeg rau zaub mov. Cov lus qhia no yog hu ua html-code ntawm nplooj ntawv thiab tau ua los ntawm cais "cim npe" uas tau piav qhia txog hom, qhov pom thiab thaj chaw ntawm txhua lub caij. Txhawm rau muab cov khoom tshiab (piv txwv, cov duab) rau hauv ib nplooj ntawv, koj yuav tsum ntxiv cov lus qhia sib xws - ib qho cim npe - rau nws cov cai. Xav txog qhov yooj yim ua qhov no.

Tso duab rau hauv nplooj ntawv
Tso duab rau hauv nplooj ntawv

Cov Lus Qhia

Kauj ruam 1

Yog tias koj siv txhua yam kev tswj hwm cov ntsiab lus, tom qab ntawd nws yog qhov yuav tshwm sim nws suav nrog nplooj ntawv kho. Ua ntej, koj yuav tsum qhib qhov nplooj ntawv xav ua hauv cov khoom kho no. Ntxiv mus - kev xaiv muaj peev xwm ua tau. Hauv qhov xwm txheej zoo tshaj plaws, nplooj ntawv editor yuav muaj "hom pom", hauv lwm lo lus - "WYSIWYG hom" (Yam uas Koj Pom Yog Qhov Koj Tau - "qhov koj pom yog qhov koj tau txais"). Hauv hom no, koj yuav tsis xav nrog tus thawj html-code txhua! Cov nplooj ntawv hauv phau ntawv nyeem yuav zoo ib yam nkaus li rau ntawm lub xaib, nws yuav txaus mus nkaug tus nas rau hauv qhov chaw xav tau thiab nias lub pob "ntxig duab" rau ntawm kab ntawv vaj huam sib luag.

Kauj ruam 2

Yog li ntawd, lub npov yuav qhib rau qhov koj xav tau xaiv daim duab yam xav tau. Yog tias koj tsis tau upload nws tseem, tseem muaj ib lub pob rau xaiv cov duab hauv koj lub computer thiab muab tso rau qhov server. Txuas ntxiv, hauv qhov kev sib tham no koj tuaj yeem tsim qhov xim thiab dav ntawm tus ncej ncig daim duab, qhov kev ncua deb thiab xim ntawm sau ntawm nruab nrab ntawm cov thav duab thiab cov duab, cov ntawv sau rau tooltip. Nws tsis yog qhov yuav tsum tau hais kom meej rau qhov ntev ntawm no, tab sis rau cov laj thawj ntawm kev ua kom nrawm nrawm nplooj ntawv thiab tiv thaiv kom tsis txhob cuam tshuam ntawm tus qauv, nws tseem zoo dua los ua qhov no. Thaum twg txhua qhov uas xav tau ntawm daim ntawv thov tau sau rau hauv, nyem "OK" thiab tom qab ntawv khaws cov ntawv edited.

Ntxig Duab Dialog Box
Ntxig Duab Dialog Box

Kauj ruam 3

Vim tias tsis muaj ib qho qauv rau kev tswj hwm cov txheej txheem, cov txheej txheem rau ntxig cov duab hauv qhov pom ntawm koj lub kaw lus yuav txawv me ntsis, tab sis txoj ntsiab cai yuav zoo ib yam. Rau tib qho laj thawj, WYSIWYG hom yuav tsis tshwm sim hauv koj lub xaib tswj kev tswj hwm. Tom qab ntawd koj tseem yuav tsum hloov kho cov lej ntawm nplooj ntawv hauv HTML (HyperText Markup Language - "hypertext markup language"). Koj yuav tsum sau tus cim npe rau qhov chaw nyob hauv txoj cai uas qhia browser kom pom cov duab ntawm no. Hauv nws daim ntawv yooj yim tshaj plaws, nws yuav tsum zoo li qhov no: Ntawm no yog "chaw nyob txheeb ze" ntawm daim duab - ntawm qhov chaw nyob qhov browser yuav tsum tiv tauj tus neeg rau zaub mov kom tau txais cov duab los ntawm nws. Yog tias qhov chaw nyob yog tus txheeb ze, tom qab lub browser yuav xav tias cov ntawv nyob hauv neeg rau zaub mov tib yam li nplooj nws tus kheej (lossis hauv subfolder). Tab sis, kom tsis txhob yuam kev, nws yog qhov zoo dua los qhia qhov "chaw nyob tsis muaj tseeb" - piv txwv li, zoo li no: Tshaj tawm, kom tus neeg rau zaub mov kom pom thiab xa cov duab rau hauv browser, nws yuav tsum muab tso rau qhov teev qhov chaw nyob. Qhov yooj yim ua qhov no yog los ntawm cov ntaub ntawv tus thawj tswj hwm, uas yog nyob rau hauv txhua qhov kev tswj hwm cov ntsiab lus, zoo li hauv kev tswj hwm ntawm koj lub tuam txhab hosting. Koj tseem tuaj yeem ua qhov no siv FTP-raws tu qauv (File Transfer Protocol - "file transfer protocol"), siv cov program tshwjxeeb - FTP-client. Muaj ntau ntawm lawv, ob qho tib si them nyiaj thiab dawb - piv txwv li, ntxim hlub FTP, FlashFXP, WS FTP, thiab lwm yam Tab sis, ntawm chav kawm, txhim kho, mastering thiab teeb tsa qhov kev zov me nyuam yuav siv sijhawm, yog li tus tuav ntaub ntawv rau rub txhua yam koj xav tau los ntawm browser yog qhov kev xaiv yooj yim dua.

Kauj ruam 4

Ntxiv rau qhov chaw nyob hauv html-tag ntawm cov duab, koj tuaj yeem qhia cov ntaub ntawv ntxiv - "tus cwj pwm" ntawm lub cim npe. Piv txwv li, alt="Duab" attribute muaj kab lus rau cov ntawv qhia uas tuaj rau thaum koj hover tus nas cursor dhau daim duab: Nws tuaj yeem hloov nrog - lub npe ntaus cim: - Qhov loj ntawm lub duab plaub uas qhov browser yuav tsum tso saib cov duab yog tsim los ntawm qhov dav thiab qhov siab cov cwj pwm: - Tus cwj pwm ciam ciam qhia qhov dav ntawm lub ciam teb nyob ib ncig ntawm daim duab (hauv pixels): Yog tias cov duab tsim los sib txuas, qhov browser yuav kos cov kob xiav nyob ib puag ncig nws. Txhawm rau tshem ntawm nws, teeb tus ciam tus nqi rau xoom: - Lwm tus ob cwj pwm muaj cov ntaub ntawv hais txog tus nqi ntawm indentation ntawm daim duab los ntawm cov khoom uas nyob ib sab (los ntawm kab ntawm cov ntawv nyeem, lwm cov duab, thiab lwm yam) - hspace teev qhov loj me ntawm indentation horizontally (sab laug thiab sab xis), vspace - vertically (hauv qab thiab saum):

Pom zoo: