Jquery循环溢出问题

时间:2009-09-01 07:19:09

标签: jquery jquery-plugins cycle

在jquery.cycle.js文件中,有以下代码:

$.fn.cycle.transitions.scrollRight = function($cont, $slides, opts) {
   $cont.css('overflow','hidden');
   opts.before.push($.fn.cycle.commonReset);
   var w = $cont.width();
   opts.cssFirst = { left: 0 };
   opts.cssBefore= { left: -w, top: 0 };
   opts.animIn    = { left: 0 };
   opts.animOut  = { left: w };
};

我试图只隐藏y溢出,但改变:

$cont.css('overflow','hidden');

要:

$cont.css('overflow','visible');

更改y和x溢出。有没有办法只改变x或y溢出?

1 个答案:

答案 0 :(得分:1)

这适用于Firefox和IE,但我不确定它是否是有效的CSS:

$cont.css('overflow-y','hidden');
$cont.css('overflow-x','scroll');