在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溢出?
答案 0 :(得分:1)
这适用于Firefox和IE,但我不确定它是否是有效的CSS:
$cont.css('overflow-y','hidden');
$cont.css('overflow-x','scroll');