$(document).on('click',?'#right',?function?()?{
????$("#table").scrollLeft(100);
????alert($("#table").scrollLeft());
})
$(document).on('click',?'#left',?function?()?{
????$("#table").scrollLeft(-100);
????alert($("#table").scrollLeft());
})
如何實(shí)現(xiàn)每一次點(diǎn)擊按鈕,橫向滾動(dòng)條有速度的向左右偏移?
前端勸退師
2017-06-28 14:11:42