我的一个朋友有一个网站,最近我们得到了一些消息,说某些图像集在IE或firefox中没有正确对齐,所以我认为错误是与谷歌浏览器有关,但不确定。
这是网站的链接:niftymodz.com - Xbox创作站
如果有人帮我解决这个问题,我会很高兴。
请让我知道我还可以提供什么信息来改进我的问题。
只是一个基本的答案,通常可以解决很多问题,也可能解决你的问题:
每个浏览器都有自己的默认样式。叫做user-agent样式
你需要先重置所有的元素,然后再处理它们。
创建一个新的样式表,命名为reset.css,并在其他样式表之前将其链接到您的网站,并在其中重置所有内容。下面是一些帮助:
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
来源:这里