.html で挿入するオブジェクトのパディングを変更しようとしています。
$('#notification-container').html($("<div id = 'notification-count'><span id = 'not-count'>"+ count +"</span></div>"));
$('#notification-count').style.padding = 1px 4px;
要素が存在しないと見なされているため、機能しないと思い#notification-count
ます。可能であれば、これを達成するための最良の方法は何ですか? すべての .html 埋め込みが保存されている「マスター配列」などはありますか?