css - 自动调整页脚大小 CSS

标签 css resize footer

我有一个包含 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/

相关文章:

javascript - CSS top div自动调整高度

android - 使用 onTouchListener 调整 View 大小

javascript - 使用 jquery 隐藏和显示元素

javascript - 在 Bootstrap 中横向隐藏/显示 col-4(近似)div/元素

matlab - 调整图形大小时辅助轴移位

css - 页眉、内容、页脚未显示图像

html - 页眉、主要和页脚定位

html - 每次我想使用它时都必须重写 html header 吗?

css - 如何设置表格每隔一行的背景色并在悬停时突出显示行?

javascript - 当按下发送按钮时,如何将表格发送到我的电子邮件?