Firefox中不应用Css样式

时间:2017-05-12 08:18:37

标签: html css

这是一个非常愚蠢的问题。但我不知道如何解决这个问题。 我有以下html / css代码

<!DOCTYPE html>
<html>
<head>
  <title>Selectors and Grouping</title>
  <style type=”text/css”>
    p {
      font-family: Arial;
      font-size: 14pt;
    }
    
    h1 {
      color: black;
      border: 5px solid black;
    }
    
    h2 {
      color: orange;
      border: 4px solid orange;
    }
    
    h3 {
      color: blue;
      border: 3px solid blue;
    }
    
    h1,
    h2,
    h3 {
      letter-spacing: 5px;
      padding: 10px;
    }
  </style>
</head>

<body>
  <h1>
    Heading 1
  </h1>
  <h2>
    Heading 2
  </h2>
  <h3>
    Heading 3
  </h3>
  <p> Selectors choose the element to apply formatting to. grouped together.
  </p>
</body>

</html>

html标题必须用方框括起来,并且颜色不同。但是,当我在Firefox浏览器中打开文档时,它会显示没有应用任何样式的页面。在线验证器指出没有错误。所以问题必须与firefox有关。有人能帮助我吗?

提前致谢。

1 个答案:

答案 0 :(得分:0)

查看你的风格标签:

<style type=”text/css”>

更改为正常双引号

<style type="text/css">

并在最后关闭你的html标签