これは私のコードです:
html
<html>
<body>
<div id="id">
<div class="one">
<img>
</div>
<div class="two">
<img>
</div>
<div class="one">
<img>
</div>
</div>
</body>
</html>
div class="one" 内でのみ画像の余白を変更したい ここに私のjqueryコードがあります:
$(document).ready(function() {
$(".one").each(function(){
$("img").css("margin-top", 10 "px");
});
});
このコードはすべての画像マージンを変更してしまいます...助けて!