Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/439.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 Can';我在chrome上看不到Firefox-css中可以看到的图像_Html_Css - Fatal编程技术网

Html Can';我在chrome上看不到Firefox-css中可以看到的图像

Html Can';我在chrome上看不到Firefox-css中可以看到的图像,html,css,Html,Css,我有完全相同的代码,但在Firefox上,我可以看到我在页面中间顶部设置的两个图像,但在Chrome上看不到它们,可能是因为我使用的是z-index,我真的不知道 这是普朗克密码 Mozilla: 铬: 再次感谢 而不是 <label class="img_vis ch_excel" for="ch_excel"></label> 如果你把这个css放进去,你会看到它在那里(灰色?): 在我看来是一样的,可能会发布2张图片,显示问题的确切位置?在撰写本文时,有500

我有完全相同的代码,但在Firefox上,我可以看到我在页面中间顶部设置的两个图像,但在Chrome上看不到它们,可能是因为我使用的是
z-index
,我真的不知道

这是普朗克密码

Mozilla:

铬:

再次感谢

而不是

<label class="img_vis ch_excel" for="ch_excel"></label>
如果你把这个css放进去,你会看到它在那里(灰色?):


在我看来是一样的,可能会发布2张图片,显示问题的确切位置?在撰写本文时,有500个错误,并且每张图片都有这个来源。这可能就是为什么:-)我的错,我忘了在plunker上上传我的图片,这就是为什么@autraI添加了两张图片,显示了问题的确切位置@MaorRefaelieven firefox也不起作用。请检查您的图像路径。我的意思是“excel.png”我什么也没看到。。(顺便说一句,css边框将为红色而不是灰色)@顺便说一句,当我删除.top页面节点时,我可以看到两个图像(因为它们都在后面,尽管我放了一个更大的z索引…)。
<label class="img_vis ch_excel" for="ch_excel">click me if you wanna buy a burger</label>
label.img_vis
{
   position:absolute;
   width:1px;
   height:1px;
   overflow:hidden;
}
.ch_excel {
   border:2px solid red;
   background-color:red;
 }