html - 当向右浮动链接时,IE11 中出现滚动条

标签 html css

我在 IE 11 中遇到 CSS 问题。我试图将一些链接向右浮动,但当屏幕达到一定宽度时,链接会停留在原处并导致出现滚动条和很多白色。

Here's the site (查看页脚)该网站尚未准备好响应,但如果可能的话,我想至少让链接在浏览器的宽度范围内移动。

截图如下:

screenshot of IE11

最佳答案

链接没有移动(并且出现了滚动条),因为页脚内的容器设置了宽度

.container-custom {
  width: 1250px;
  margin: 0 auto;
}

您可以尝试将其更改为:

.container-custom {
  width: 80%; // Or some other arbitrary value that won't be fixed
  margin: 0 auto;
}

这样它仍然会保持居中,但会流畅地展开和收缩。

关于html - 当向右浮动链接时,IE11 中出现滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22024815/

相关文章:

javascript - 当 js 显示和隐藏效果到位时,让 div 显示不同的颜色

jquery - 图像不显示在 css/jquery slider 中

javascript - 表单中的 angularjs 复选框

php - jquery 表单序列化()不起作用

javascript - 在javascript中从本地驱动器读取文件/图像

javascript - 如何让一个内容可加载 DIV 滚动而另一个保持可见?

html - 如何控制边框的高度?

java - 网页更新不会部署在我的 netbeans java web 项目中

javascript - 背景位置固定在展开/折叠列表中

html - 悬停状态在 Google Chrome 中移动我的 h2