我正在尝试将下面列出的按钮移动到我页面的底部,在另一个 div(本质上是一个大表格)下面,下面的 html 在所述 div 类之外,但我实际上很难过我哪里错了……
HTML
<div class="functions">
<button><a href= "#" id="donwload-link" onClick="save()">Save File</a></button>
<input id="fileInput" type="file" style="display:none;" />
<button type="button" cmd>PDF</button>
</div>
CSS:
functions{
position:absolute;
bottom: 5%;
}
最佳答案
为了用 CSS 选择一个类,你必须在变量前面加上一个句点。
尝试:
.functions{
position:absolute;
bottom: 5%;
}
关于html - CSS - 在现有 div 下方移动按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51545455/