JavaScript: matn terishning qanchalik miqdori?

I want to know how much is the

function getElementVerticalScroll(el){
      return integer
}
1

3 javoblar

Agar siz kutubxonani olib kelishni istamasangiz, elementning scrollTop xususiyatiga e'tibor bering: http://jsfiddle.net/pimvdb/GXGHB/2/ .

textarea.scrollTop;
1
qo'shib qo'ydi

Funktsiyangizning bo'sh joyini to'ldirdim:

function getElementVerticalScroll(el){
      return el.scrollTop;
}
function getElementHorizontalScroll(el){
      return el.scrollLeft;
}
1
qo'shib qo'ydi

JQuery-dan foydalanish, menimcha $ (element) .scrollTop (); vertikal-qidiruvni amalga oshirishi kerak. Landshaft uchun scrollLeft .

0
qo'shib qo'ydi
Javascript UZB
Javascript UZB
99 ishtirokchilar

@js_uzb @vuejs_uz @react_uz @nodejs_uz @angular_uz @ngTashkent @yiiframework_uz @laravel_uz @linux_uzbek @python_uz @swift_uzb —————— @uzdevgroup @UzGeeksGroup ——— @UzDev_Jobs @jobs_uzb