jQuery CSS() for dynamically created elements

前端 未结 3 2100
面向向阳花
面向向阳花 2020-12-03 08:06

I\'m using jQuery CSS function to style some elements

$element.css(style);

This works, but a part of the elements are created dynamically a

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 08:35

    $('head').append('
    < style >
    .folder { background: url(../icons/Folder_icons/g/f.png) no-repeat left top;} < / style >');
    

提交回复
热议问题