如何讓我的按鈕和複選框固定在我的div底部。我能夠讓我的可滾動工作。我的問題是按鈕和複選框不固定在底部。如何使按鈕和複選框固定在DIV底部
所以,當我用文本填充div時,文本會溢出按鈕和複選框,但我怎樣才能讓文本被包含在scroll-able中而不會溢出按鈕和複選框?
#chk {
float: left
}
.btn {
float: right
}
<div style="height:40%; overflow: scroll;" class="panel" id="panel">
<!--inner part of the div which contains the text (scrollable is applied here) -->
<input id="chk" type="checkbox" /> <!-- should be on the left bottom of the div -->
<button type="submit" class="btn">Button</button> <!--should be on the right bottom of the div (opposite the checkbox)-->
</div>
請問您可以包括您嘗試過的CSS嗎? –
@JoeLissner我已將我的CSS包含在按鈕和複選框中 – LearnLaravel