简体   繁体   English

为什么我的网站可以在某些Chrome,Opera和Safari中使用,但不适用于FireFox或IE?

[英]Why does my website work in some Chrome, Opera, and Safari but not FireFox or IE?

So my website is just being started and currently it works in three of the five main browsers. 所以我的网站刚刚启动,目前它在五个主要浏览器中的三个中运行。 It wont let me post pictures yet so I can't show anyone, but the website is here 它不会让我发布图片,所以我不能向任何人展示,但网站在这里

In the ones it works in everything is exactly how I want it but in the ones it doesn't work in the background is completely white with no images or styles on anything and all the text is set to the left of the screen. 在它所有的一切都是我想要的,但在背景中不起作用的是完全白色,没有任何图像或样式,所有文本都设置在屏幕左侧。 If anyone could help that would be amazing! 如果有人能提供帮助那就太棒了! Thanks 谢谢

you defined wrong type type="tect/css" 你定义了错误的类型type="tect/css"

<link href="css/reset.css" rel="stylesheet" type="tect/css" /> /*wrong type define here*/

to

<link href="css/reset.css" rel="stylesheet" type="text/css" />

https://forums.digitalpoint.com/threads/css-background-image-not-showing-in-ie.115660/ Check that post for pointers as to how to properly set backgrounds. https://forums.digitalpoint.com/threads/css-background-image-not-showing-in-ie.115660/请查看该帖子,了解如何正确设置背景。 You want to double check your css and research the most common quirks in IE. 你想仔细检查你的CSS并研究IE中最常见的怪癖。 Also, your question is very unhelpful since it doesn't even mention what versions of browsers you have already tried. 此外,您的问题非常无益,因为它甚至没有提到您已尝试过的浏览器版本。

the think that says Kheema Pandey is correct but there is another think that you have to consider: 认为Kheema Pandey的想法是正确的,但还有另一个认为你必须考虑:

there are some codes in javascript that some browsers reconize and some other they dont. javascript中有一些代码可以让某些浏览器重新协调,而其他一些代码则不会。

so you have to find a compatible code. 所以你必须找到兼容的代码。

i mean in some cases it happens 我的意思是在某些情况下会发生

delete this line. 删除这一行。 You are basically limiting the rendering to only IE latest and chrome 您基本上将渲染限制为仅IE最新和Chrome

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我的Javascript / jQuery可以在Chrome和Safari中运行,但不能在Firefox,IE9或Opera中运行? - Why does my Javascript/jQuery work in Chrome and Safari but not firefox, IE9, or Opera? 为什么我的代码在Safari或Opera中不起作用? - Why does my code not work in Safari or Opera? 为什么我的网站可以使用Safari,但不能使用FireFox或IE? - Why is my website working with Safari, but not FireFox or IE? 为什么我的“以前”过滤器只能在Chrome中使用,而不能在Safari或Firefox中使用? - Why does my 'time ago' filter work in chrome and not safari or firefox? 无法下载html5以在Firefox中以编程方式工作(适用于Safari,IE,Opera,Chrome) - Can't get html5 download to work programmatically in Firefox(Works on Safari, IE, Opera, Chrome) Javascript函数不适用于Firefox,但适用于Chrome,Safari,IE和Edge - Javascript function does not work in firefox but does in chrome, safari, IE and edge 点钞机可在Chrome,Safari(Windows),Opera和IE中使用,但不能在Firefox中使用。 为什么? - Money counter in works in Chrome, Safari (Windows), Opera, and IE, but not Firefox. Why? 为什么此功能适用于Firefox,但不适用于Chrome或IE? - Why does this work with Firefox but not Chrome or IE? 为什么这适用于 IE,但不适用于 Firefox 或 Chrome? - Why does this work for IE but not for Firefox or Chrome? 为什么从位置哈希中选择下拉列表在Chrome上不起作用,但在Firefox,IE或Safari上不起作用? - Why does dropdown list selection from a location hash work on Chrome, but not Firefox, IE, or Safari?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM