CSS のスタイルを設定して、jsfiddle の例に流動的な幅を含めることができる方法はありますか?
$(document).ready(function(){
$('a.next').click(function(){
$('.slide').animate({"left": "-=480"}, 500);
})
$('a.back').click(function(){
$('.slide').animate({"left": "+=480"}, 500);
})
});
.form-slides {width:480px; overflow:hidden; border: 1px solid #ccc;}
.wrap { width: 9999px; }
.slide {width:480px; float:left; position: relative; background:#eee;}
.next {float:right;}
<div class="form-slides">
<div class="wrap">
<div class="slide">
<p>Lipsum blah blah blah</p>
<a href="#" class="next">Next</a>
</div>
<div class="slide">
<p>Lipsum blah blah blah</p>
<a href="#" class="next">Next</a>
<a href="#" class="back">back</a>
</div>
<div class="slide">
<p>Lipsum blah blah blah</p>
<a href="#" class="back">back</a>
</div>
</div>
</p>