美文网首页
js对相同clss名改变样式

js对相同clss名改变样式

作者: Mr丶T | 来源:发表于2016-11-03 17:30 被阅读0次

function schedulefun(){

schedule = $("#schedule").text();

$('.pro').each(function(){

$(this).css('width',schedule);

});

$('.proring').each(function(){

$(this).css('left',schedule);

});

}

window.onload=schedulefun;

相关文章

网友评论

      本文标题:js对相同clss名改变样式

      本文链接:https://www.haomeiwen.com/subject/eqciuttx.html