考虑到在 Firefox 中 position-y 不起作用,我需要在 jquery 中编写一些代码,以便能够在 hasClass 'no-event' 时设置 background-position-y。
我做错了什么?
CSS
#products-events .nav li.no-event a:after{background-position-y:-67px;}
jQuery
if ($('#products-events li').hasClass('no-event')) {
//$('.no-event').css('background-position','-67' + yposition );
}
小提琴