1
伙计。我可以在jQuery .setProperty中使用类似于属性的函数吗?我可以在.setProperty中添加像属性一样的功能吗?
jQuery(document).ready(function(){
jQuery(".content-wrapper").mouseenter(function(){
jQuery(this).find('.separator-content-box').each(function(){
this.style.setProperty('width', jQuery(jQuery('.content-wrapper').width() - jQuery('.heading').width()), 'important');
this.style.setProperty('border-color', 'red', 'important');
});
});
是的!但在这个“this.style.setProperty('width',jQuery(jQuery('。content-wrapper')。width() - jQuery('。heading')。width())''中有一个额外的jQuery,重要的');“ –