Here is the fiddle: http://jsfiddle.net/UDe8r/1/推荐答案在此处进行演示 http://jsfiddle.net/yeyene/fpPJz/3/ $(document).ready(function(){ $('.wrapper a').on('click',function(){ if($(this).text() == 'Show') $(this).text('Hide'); else $(this).text('Show'); $('.wrapper .content').slideToggle('slow'); });}); CSS .wrapper { height: 400px; position: relative;}.wrapper #button{ cursor:pointer; position: relative; left:0; top:0; padding:0;}.wrapper #button a{ padding:0 5px; text-align:right; background:green; cursor:pointer;}.container{ position: absolute; bottom:0;}.content{ display:none; padding: 10px; background-color: #bbb;} 这篇关于jQuery:如何向下滑动一个绝对div以及另一个向下滑动的div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-23 12:02