Yuav Txheeb Xyuas Lub Xaib Hauv Browser Sib Txawv Li Cas

Cov txheej txheem:

Yuav Txheeb Xyuas Lub Xaib Hauv Browser Sib Txawv Li Cas
Yuav Txheeb Xyuas Lub Xaib Hauv Browser Sib Txawv Li Cas

Video: Yuav Txheeb Xyuas Lub Xaib Hauv Browser Sib Txawv Li Cas

Video: Yuav Txheeb Xyuas Lub Xaib Hauv Browser Sib Txawv Li Cas
Video: niam dab laug muab khoom rau tub aim tim pas ntse nyob saum toj qoj haib kawh kiag 2024, Kaum ib hlis
Anonim

Tus HTML coder yuav tsum paub: lub cim ntawm kev tshaj lij yog qhov ua haujlwm thiab ua haujlwm ntawm lub vev xaib nyob hauv txhua lub browser, tsawg kawg hauv "peb qho loj", uas suav nrog cov browsers Internet Internet, Opera, Mozilla Firefox. Cov txheej txheem ntawm kev txheeb xyuas qhov tseeb ntawm lub xaib ntawm cov xaib muaj peb ntu.

tshawb xyuas cov nplooj ntawv web nyob rau hauv nyias browsers
tshawb xyuas cov nplooj ntawv web nyob rau hauv nyias browsers

Nws yog qhov tsim nyog

  • • Muaj ntau qhov browser ntsia tau rau hauv lub khoos phis tawm.
  • • Mloog zoo.

Cov Lus Qhia

Kauj ruam 1

Theem ib, kev npaj

Tus txheej txheem kev npaj muaj nyob rau hauv rub tawm cov browser faib khoom siv thiab nruab nws nyob rau hauv lub computer. Txhua cov txheej txheem kev teeb tsa xaus nrog cov lus nug: "ua qhov browser suav nrog lub neej ntawd?". Yog li, qhov tseem ceeb ib qho, lossis suav nrog los ntawm lub neej ntawd, koj yuav tsum ua tus uas tuav ib qho chaw ua haujlwm nyob hauv qhov nruab nrab ntawm qhov loj ntawm "ua tau". Raws li kev paub ntawm ntau tiam neeg ntawm cov neeg tsim qauv, qhov no yog Opera browser.

Txav nrog ntau cov browsers ntawm koj lub computer, pib ncaj qha rau cov txheej txheem sib piv. Txhawm rau ua qhov no, yuj dhau cov ntawv nrog.html txuas ntxiv, uas yuav yog qhov pib ntawm nplooj ntawv lub vev xaib lossis tag nrho tus qauv, thiab nyem rau ntawm nws nrog tus nas khawm xis. Hauv kem uas qhib, xaiv "qhib nrog", thiab tom qab ntawd xaiv hom browser uas koj xav tau. Cov ntawv tuaj yeem qhib nyob rau ntau lub browsers tam sim ntawd, tawm hauv lawv li minimized ntawm lub desktop taskbar, thiab qhib raws li xav tau.

Kauj ruam 2

Theem ob - pom kev sib piv

Pom tau, cov nplooj ntawv ntawm qhov chaw hauv qhov browser yuav txawv hauv peb qhov tseem ceeb:

1. Los ntawm tus nqi ntawm kab thiab nqis peev nruab nrab ntawm nplooj ntawv. IE yog qhov tshwj xeeb tshaj yog suav hauv qhov tseem ceeb ntawm qhov tseeb ntawm cov padding thiab cov npoo.

2. Txawv browser sib txawv tso tawm cov fonts sib txawv, txawm tias tus qauv fonts xws li Arial thiab Times Tshiab Roman. Qhov no yog qhov nyuaj tshaj plaws rau kev xa cov khoom kab, uas tuaj yeem pom hauv ob kab lossis qhwv tag nrho rau kab thib ob.

3. Kev kho qhov tseeb ntawm kev ua kom pom cov duab. Hauv kev hais yoojyim, qee qhov browser, xws li Opera, tsis txhob nyeem cov vspace thiab hspase cov khoom uas tau teev nyob rau hauv cov ntawv sau cim npe.

… Qee lub sij hawm cov duab tsis nyob hauv plawv ntawm lub rooj yog qhov tsim nyog

tus mob no tsis raug hais tawm. Tab sis qhov teeb meem tseem ceeb rau cov qauv tsim qauv yog npaj.png

Theem peb - kuaj xyuas kev ua haujlwm

Nyob rau theem no, koj yuav tsum kos "nco-down" cov ntawv qhia zaub mov. Hauv lawv txoj haujlwm, yuav tsum tsis muaj kev ua siab luv, ua kom qeeb, thiab tseem ceeb tshaj, dhia hauv cov ntsiab lus dav dav ntawm nplooj ntawv thaum qhib cov khoom siv cov ntawv qhia zaub mov. Tib yam siv rau cov ntsiab lus ntawm nplooj ntawv, uas tau nthuav dav thaum koj nyem lub pob nyem lossis cov ntawv sau "ntau cov ntsiab lus".

Hauv kev xaus, Kuv xav hais tias kev tawm tsam rau "cross-browser compatibility" - qhov no yog lub npe ntawm cov khoom ntiag tug ntawm nplooj ntawv yuav tsum tau tso tawm txhua qhov chaw tib txoj kev, cov txheej txheem yog txoj thiab zoo siab, xav tau ntau qhov kev siv tswv yim. kev paub.

Kauj ruam 3

Theem peb - kuaj xyuas kev ua haujlwm

Nyob rau theem no, koj yuav tsum kos "nco-down" cov ntawv qhia zaub mov. Hauv lawv txoj haujlwm, yuav tsum tsis muaj kev ua siab luv, ua kom qeeb, thiab tseem ceeb tshaj, dhia hauv cov ntsiab lus dav dav ntawm nplooj ntawv thaum qhib cov khoom siv cov ntawv qhia zaub mov. Tib yam siv rau cov ntsiab lus ntawm nplooj ntawv, uas tau nthuav dav thaum koj nyem lub pob nyem lossis cov ntawv sau "ntau cov ntsiab lus".

Hauv kev xaus, Kuv xav hais tias kev tawm tsam rau "cross-browser compatibility" - qhov no yog lub npe ntawm cov khoom ntiag tug ntawm nplooj ntawv yuav tsum tau tso tawm txhua qhov chaw tib txoj kev, cov txheej txheem yog txoj thiab zoo siab, xav tau ntau qhov kev siv tswv yim. kev paub.

Pom zoo: