Any way to apply 'webkit-overflow-scrolling: touch' inline with javascript?

前端 未结 3 555
北海茫月
北海茫月 2021-01-19 10:31

have not been able to get this property show up in the DOM via jquery or native javascript. jquery doesn\'t seem to support it and I can\'t find a native name/syntax that wo

3条回答
  •  我在风中等你
    2021-01-19 11:09

    With JavaScript, you need to replace dash - with following capital letter, example:

    var el = document.getElementById('element id');
    el.style.webkitOverflowScrolling = 'touch';
    

提交回复
热议问题