与 jQuery('.class').css(...); 相比,我有一个奇怪的问题。
jQuery('#ns-background-repeat').on('change', function(){
//alert(jQuery(this).val());
jQuery(this).css({ 'background-repeat' : jQuery(this).val() });
jQuery('.test').text( jQuery(this).css('background-repeat') );
});
请让我知道为什么它不起作用:http: //jsfiddle.net/eXa4y/2/
铬: http: //gyazo.com/42cd909cc0b1c17023975f034e5a4728。
火狐: http: //gyazo.com/aa74f7e00fd898a7c43c2d7e44d0d17c - 效果很好。