我有一个包含 2 行 3 个链接的页脚 - 当浏览器窗口调整大小并且变得太小时,链接会被切断。有什么方法可以在调整窗口其余部分大小时保持页脚完整大小?
.footer { position: fixed; top: 90%; left: 0; right: 0; bottom: 0;
background: #ffffff; border: solid black; border-width: 2px 0 0 0; }
最佳答案
为你的 div 设置一个“最小宽度”
.footer {
position: fixed;
top: 90%;
left: 0;
right: 0;
bottom: 0;
background: #fff;
border-top: 2px solid #000;
min-width: 200px;
}
关于css - 自动调整页脚大小 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15527165/