【问题标题】:Header is not showing correctly in IE and FIREFOX (it is working in Chrome and edge)标题在 IE 和 FIREFOX 中显示不正确(它在 Chrome 和 Edge 中工作)
【发布时间】:2023-03-16 20:55:01
【问题描述】:

我的网站标题无法正常工作。 它可以在 Chrome 和 edge 上完美运行,但不能在 IE 和 Firefox 上运行。 Firefox Issue Internet Explorer Issue

我想修复左侧的标志 应该是什么问题,我应该在哪些方面检查相同的代码?

【问题讨论】:

  • 寻求调试帮助的问题(“为什么这段代码不起作用?”)必须包括所需的行为、特定的问题或错误以及在问题本身中重现它所需的最短代码。没有明确问题陈述的问题对其他读者没有用处。请参阅:How to create a Minimal, Complete, and Verifiable example

标签: html css layout


【解决方案1】:

用类似的方式重置 CSS 代码:

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;
}

...并尝试在您的 CSS 代码中对某些命令使用 -moz-“参数”!

希望能帮到你!

【讨论】:

    猜你喜欢
    • 2017-01-12
    • 2018-10-31
    • 1970-01-01
    • 1970-01-01
    • 2015-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-08
    相关资源
    最近更新 更多