Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.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 为什么我的网站在mozilla firefox和chrome上看起来不同?_Html_Css - Fatal编程技术网

Html 为什么我的网站在mozilla firefox和chrome上看起来不同?

Html 为什么我的网站在mozilla firefox和chrome上看起来不同?,html,css,Html,Css,我一直在做我的html,我总是用Mozilla Firefox打开它。看起来还可以,但当我用Chrome打开我的本地主机时,它看起来就不同了 这是它的不同之处: <div class ="label"> <li><a href="html/profiles.html"> Profiles</a></li> <li><a href="html/expertise.html"> Expertise&l

我一直在做我的html,我总是用Mozilla Firefox打开它。看起来还可以,但当我用Chrome打开我的本地主机时,它看起来就不同了

这是它的不同之处:

<div class ="label">
  <li><a href="html/profiles.html"> Profiles</a></li>
  <li><a href="html/expertise.html"> Expertise</a></li>
  <li><a href="html/location.html"> Location</a></li>
</div>

问题是,您使用的
  • 元素没有包含
    元素。 它能否在firefox上正确显示只是运气的问题

    也可以尝试使用
    元素,或者删除
  • 标记

    有关更多信息,请查看此 . 以下是使用
    包括

  • li
    在没有
    ul
    li
    的浏览器上无法正常工作。您应该用
    ol
    ul
    标签将其附上。这里有一个例子

    
    

    你能显示一些图像中的差异吗?我无法再现类似的效果,但我会从
    右边距开始:-433px。如果我在代码中看到负边距,我会感觉到麻烦(这个高值是一个严重的警告信号!)。