我在 IE 11 中遇到 CSS 问题。我试图将一些链接向右浮动,但当屏幕达到一定宽度时,链接会停留在原处并导致出现滚动条和很多白色。
Here's the site (查看页脚)该网站尚未准备好响应,但如果可能的话,我想至少让链接在浏览器的宽度范围内移动。
截图如下:
最佳答案
链接没有移动(并且出现了滚动条),因为页脚内的容器设置了宽度
.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/