【发布时间】:2017-09-17 10:19:00
【问题描述】:
伙计们。我可以在 jQuery .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()), 'important ');"
标签: jquery setpropertyactionlistener