一橫排8張圖片,我隱藏右邊jQuery如何讓其余圖片自動向右靠
右浮動布局就好了,
<style>
.floatright img{float:right;margin-left:5px}
</style>
<div class="floatright">
<img alt="image1"/>
<img alt="image2"/>
<img alt="image3"/>
<img alt="image4"/>
<img alt="image5"/>
</div>
<script src="http://www.crazyjs.org/demo/calendar/js/jquery.js"></script>
<script type="text/javascript">
setTimeout(function(){$('div.floatright img:eq(3)').hide();$('div.floatright img:eq(2)').hide()},1000)
</script>