传递参数值时,设置滚动条左侧偏移为该值。
此方法对可见和隐藏元素均有效。
返回值 jQuery
示例 设置相对滚动条左侧的偏移
jQuery 代码:$("div.demo").scrollLeft(300);
$("div.demo").scrollLeft(300);