Html CSS背景色属性不起作用

Html CSS背景色属性不起作用,html,css,Html,Css,我正在用html和css建立一个网站,我遇到了一个问题。 这是我的代码: 除了“背景色”属性外,所有功能都正常。但这不起作用 我已经尝试了过去答案中的每一个答案,但我无法解决这个问题 #footer { clear: both; background-color: #00b36b padding: 10px; color: #1ac6ff; text-align: right; overflow: auto; } 背景色应该是##00b36b,但不是。缺少的分号已添加到

我正在用html和css建立一个网站,我遇到了一个问题。 这是我的代码:

除了“背景色”属性外,所有功能都正常。但这不起作用

我已经尝试了过去答案中的每一个答案,但我无法解决这个问题

#footer {
  clear: both;
  background-color: #00b36b
  padding: 10px;
  color: #1ac6ff;
  text-align: right;
  overflow: auto;
}

背景色应该是##00b36b,但不是。

缺少的分号已添加到背景色和颜色中。它们必须位于每个CSS值的末尾。键入以下代码:

#footer {
  clear: both;
  background-color: #00b36b;
  padding: 10px;
  color: #1ac6ff;
  text-align: right;
  overflow: auto;
}

看起来您缺少
背景色的末尾:#00b36b

请尝试以下操作:-

#footer {
  clear: both;
  background-color: #00b36b;
  padding: 10px;
  color: #1ac6ff;
  text-align: right;
  overflow: auto;
}

看起来您缺少
背景色:#00b36b
哦,我的天啊,我太傻了。谢谢你。