作者:欣荣_75229 | 来源:互联网 | 2023-05-19 05:18
ThefooteratmysiteAtlanticSentinelhasawidthspecifiedat960pxandamax-widthalsoat960px
The footer at my site Atlantic Sentinel has a width specified at 960px and a max-width also at 960px. It looks fine in IE but Chrome adds 3px to the width. Why, I can't figure it out.
我的网站Atlantic Sentinel的页脚宽度指定为960px,最大宽度也为960px。它在IE中看起来不错,但Chrome增加了3px的宽度。为什么,我无法弄明白。
Here's the relevant CSS:
这是相关的CSS:
#colophon {
clear: both;
display: table;
width: 960px;
max-width: 960px;
background: #131313;
overflow: hidden;
border-top: 3px solid #0099cc;}
#colophon .widget {
display: table-cell;
float: left;
width: 22%;
margin: 2em 0 2em 2em;
background: #000;
color: #ccc;
text-align: justify;}
It's not the margins on the widgets. I've tried removing one, so there's only three widgets, 22% wide, and the extra 3px is still there in Chrome.
这不是小部件的边缘。我已经尝试删除一个,因此只有三个小部件,22%宽,而额外的3px仍然存在于Chrome中。
What am I missing?
我错过了什么?
3 个解决方案