Yuav Ua Li Cas Tshem Tawm Cov Seem

Cov txheej txheem:

Yuav Ua Li Cas Tshem Tawm Cov Seem
Yuav Ua Li Cas Tshem Tawm Cov Seem

Video: Yuav Ua Li Cas Tshem Tawm Cov Seem

Video: Yuav Ua Li Cas Tshem Tawm Cov Seem
Video: Tsis Muaj Peev Xwm Yuav Ua Li Cas 2024, Hlis ntuj nqeg
Anonim

Scroll yog qhov ua haujlwm los tso tawm cov nplooj ntawv scrolling li cov neeg siv saib cov ntaub ntawv. Yog tias koj xav tau, koj tuaj yeem tshem tawm nws, khaws nws lossis kho nws raws li koj nyiam.

Yuav ua li cas tshem tawm cov seem
Yuav ua li cas tshem tawm cov seem

Tsim nyog

txuj ci kev siv hom lus JavaScript

Cov Lus Qhia

Kauj ruam 1

Nco ntsoov tias koj tsis tas yuav ua lub scrolling muaj nuj nqi. Nyob rau tib lub sijhawm, nco ntsoov tias qhov tsis muaj ntawm lub luag haujlwm no yuav tsim kev tsis zoo ntxiv rau koj cov neeg tuaj saib lub vev xaib, uas tau dhau los ua ib txoj hauv kev los saib cov nplooj ntawv hauv lub xyoo. Yog tias koj txawm li cas los txiav txim siab tshem nws tawm kom paub meej, tom qab ntawd qhib cov editor ntawm koj lub xaib, uas koj feem ntau ua haujlwm.

Kauj ruam 2

Nkag mus rau tus lej hauv qab ntawm nplooj ntawv (tsis muaj cov cim nyob ze ntawm cov cim npe): " " " Qhov no yuav lov tes taw rau hauv cov kab ntawv. thiab kev xiam oob qhab no, feem.

Kauj ruam 3

Tshem tawm cov scrollbar ntawm lub qhov rais tshiab los ntawm kev siv window.open tus qauv thiab tus nqi ntawm scrollbar = 0 parameter, tom qab ntawd txhua tus scrollbars uas twb muaj lawm, ob qho tib si kab rov tav thiab ntsug, yuav raug tshem tawm ntawm koj qhov web edited. Tsuas yog ua qhov no yog tias koj tau ua haujlwm kev ua haujlwm thiab kev paub zoo ntawm JavaScript lus.

Kauj ruam 4

Ntxiv mus, txhawm rau tshem tawm cov ntawv sau tawm ntawm lub qhov rais tshiab, siv cov cai hauv qab no: window.open ("tips.html", "TIP", "qhov dav = 400, qhov siab = 300, xwm txheej = 0, menubar = 0, qhov chaw = 0, resizable = 0, phau ntawv qhia = 0, toolbar = 0, scrollbar = 0 "); Nws yuav tsum tshem tag nrho cov khoom uas twb muaj lawm los ntawm nplooj ntawv.

Kauj ruam 5

Rau cov browser uas siv ntau tshaj plaws, siv cov kab hauv qab no: Siv tus cwj pwm hu ua dhau mus rau BODY lo lus tseem ceeb, ntxiv ib tus nqi zais ntxiv. Tom qab ntawv, qhov seem ntawm koj lub vev xaib yuav tsis pom: LUB CIM {hla dhau: muab zais). Nco ntsoov tias qhov no tsis ua haujlwm rau txhua tus browsers.

Pom zoo: