Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html CSS在IE或Firefox中不起作用-Chrome可以正常工作_Html_Css_Google Chrome_Firefox_Safari - Fatal编程技术网

Html CSS在IE或Firefox中不起作用-Chrome可以正常工作

Html CSS在IE或Firefox中不起作用-Chrome可以正常工作,html,css,google-chrome,firefox,safari,Html,Css,Google Chrome,Firefox,Safari,网页 http://144.76.221.141:8000 在Chrome和Safari中显示正确的CSS样式,但拒绝在Firefox或Chrome中显示。我已经看到添加doctype是一种常见的修复方法,但是这对解决我的问题毫无帮助。任何指向解决方案的指针都将不胜感激。通过将其添加到样式表中,您可以编写仅限IE的CSS <!--[if IE 8]> <style>...</style> <![endif]--> 如需进一步参考,您可以访问删

网页
http://144.76.221.141:8000

在Chrome和Safari中显示正确的CSS样式,但拒绝在Firefox或Chrome中显示。我已经看到添加doctype是一种常见的修复方法,但是这对解决我的问题毫无帮助。任何指向解决方案的指针都将不胜感激。

通过将其添加到样式表中,您可以编写仅限IE的CSS

<!--[if IE 8]>
<style>...</style>
<![endif]-->


如需进一步参考,您可以访问

删除样式表声明类型中的斜杠:

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


用于链接CSS的此声明

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

样式表上的
类型需要如下所示:

<link type="text/css" href="/css/parent.css" rel="stylesheet">
<link type="text/css" href="/css/landing-page.css" rel="stylesheet">
<link type="text/css" href="/css/dropit.css" rel="stylesheet">


从一开始就删除
/

CSS,html?…fiddle?这只是因为不同的浏览器路径呈现,像chrome,safari这样的webkit浏览器忽略了,但是mozilla没有,所以只需删除CSS路径中的第一个斜杠“/”。太简单了,嘘!谢谢!
<link href="/css/dropit.css" rel="stylesheet" type="text/css"></link>
<link type="text/css" href="/css/parent.css" rel="stylesheet">
<link type="text/css" href="/css/landing-page.css" rel="stylesheet">
<link type="text/css" href="/css/dropit.css" rel="stylesheet">