Cov kab ntawv khawm yog tam sim no ua qauv rau yuav luag txhua qhov chaw Internet, tso cai rau koj kom nce hauv qab lossis sau rau nplooj ntawv kom yooj yim nkag siab nrog cov ntaub ntawv tso tawm ntawm nws. Muaj qee kis, tus qauv tsim lub vev xaib tsim tawm tus tsim tawm los tshem tawm cov kab ntawv hla ntawm nplooj ntawv vim nws tsis zoo rau nplooj ntawv tsim lossis hom ntawm cov ntsiab lus tshaj tawm. Tsuas yog tshem tawm cov kab ntawv hla ntawm koj lub xaib thaum nws yog qhov tsim nyog tiag tiag kom tsis txhob ua rau tsis xis nyob rau cov neeg nyeem thiab cov nplooj qhua.
Cov Lus Qhia
Kauj ruam 1
Yog tias koj xav kaw lub scrollbar hauv nplooj ntawv ntas, siv cov kev xaiv lossis tig scrolling rau thiab tawm. Txhawm rau xiam scrolling hauv kablus, sau cov cai hauv qab ntawm nplooj ntawv:
Kauj ruam 2
Tshem cov scrollbar ntawm lub qhov rais tshiab yog me ntsis kev qhia - koj xav tau qhov kev paub ntawm JavaScript ua qhov no. Hauv qhov no, txhawm rau tshem tawm scrollbar, siv txoj kev window.open thiab scrollbar = 0 parameter. Qhov kev xaiv no tshem tawm txhua tus scrollbars ntawm nplooj ntawv - ob qho tib si kab rov tav thiab ntsug. Txhawm rau tshem tawm cov scrolling hauv lub qhov rais tshiab, ntxig cov kab hauv qab no rau hauv nplooj ntawv kab ntawv txhawm rau txhawm rau nplooj ntawv ntawm cov khoom siv navigation: window.open ("tips.html", "TIP", "dav = 400, qhov siab = 300, xwm txheej = 0, menubar = 0, qhov chaw = 0, resizable = 0, phau ntawv qhia = 0, toolbar = 0, scrollbar = 0 ");
Kauj ruam 3
Rau browsers Netscape, Mozilla thiab Internet Explorer, tus tshaj dhau parameter yog haum, uas yuav tso cai, los ntawm hloov cov qauv, kom tshem tawm scrolling los ntawm nplooj ntawv. Siv cov sib tshooj dhau rau qhov BODY tag, ntxiv nws nrog cov nqi zais, thiab txuag qhov tshwm sim - cov kab ntawv hla ntawm nplooj ntawv yuav ploj:
CEV {ntxeev dhau: muab zais}
: