$("button.filters").click(function(){
$("div.second").slideToggle("slow");
});
.main {
position: relative;
display:block;
height: 320px;
color: #fff;
background-color: grey;
}
.first {
position: absolute;
bottom: 15%;
height: 70px;
background-color: white;
}
.second {
position: absolute;
bottom: 0%;
height: 30px;
background-color: green;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="main">
<div class="first">
<p>some content</p>
<button class="filters">filters</button>
</div>
<div class="second">
<p>other content</p>
</div>
</div>
請檢查此琴 https://jsfiddle.net/6d1t5jr8/
我需要幫助從.first
格的底部邊框做。第二格到.slideToggle
。
添加您的代碼/提琴.. – Abhishek
創建一個在這裏工作片斷或至少一個小提琴使問題的一小部分娛樂。 – Iceman
請現在檢查 –