我有元素 div id="akbarslide"
。里面有四张图。
<img src="image_suspetio/garbage.jpg" alt="garbage.jpg" width="270" height="250" />
<img src="image_suspetio/dog.jpg" alt="dog.jpg" width="270" height="250" />
<img src="image_suspetio/bar.jpg" alt="bar.jpg" width="270" height="250" />
<img src="image_suspetio/sky.jpg" alt="sky.jpg" width="270" height="250" />
我尝试了下面的代码,但图像没有被删除。
$('img[src="garbage.jpg"]').remove();