css - 样式 ="left:0px; width:100%"在 IE 中没有从左到右完全填充

标签 css

这听起来可能很傻。

我有一个 <div style="position:absolute; top:0px; left:0px; width:100%; height:200px; background-color:#222222; margin-bottom:50px; right:0px;"></div> .它在 ff 和 chrome 上从左到右显示,但在 IE 上不显示。具体应该怎么解决。

谢谢 让

最佳答案

尝试设置 right 除了 left:

position:absolute;
top:0;
left:0;
right:0;

关于css - 样式 ="left:0px; width:100%"在 IE 中没有从左到右完全填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2408364/

相关文章:

jquery - 元素未在 percircle 中的 div 中居中对齐

css - 如何创建完整的背景图像

css - 网页字体未加载 IE8

google-chrome - Google Chrome 8 中的边框半径

HTML/CSS - 链接不采用父 div 的宽度和高度,即使它们设置为 100%

javascript - 如何通过索引获取 jQuery UI Tabs DOM 元素?

html - 如何让 Firefox 在文件更改时自动刷新?

css - 导航中心

html - 如何查找、导入和使用特定字体?

html - CSS 无法在 Chrome 中正确显示