背景颜色不在style.css中显示,但在index.html中显示

时间:2015-12-17 05:01:00

标签: html css

HTML5& CSS。 使用Sublime Text 3 目前正在关注视频以创建单页组合。 提供的视频链接:format 在视频中,Abdul Khan将CSS背景颜色代码放在style.css面板/文件夹中。 例如:

import cv2
import numpy as np

img = cv2.imread("1.jpg")
img2 = cv2.imread("2.jpg")
img3 = cv2.imread("3.jpg")

images = [img, img2, img3]
times = [-2, 0, 2]

response = np.zeros(256)
import ipdb; ipdb.set_trace()
calibrate = cv2.createCalibrateDebevec()
calibrate.process(images, response, times)

ipdb> calibrate.process(images, response, times)
*** TypeError: dst is not a numpy array, neither a scalar

但是当我尝试将此代码放在我的style.css中时,它不起作用。

背景颜色仅在我在index.html中并且放置" bgcolor"在体内。

body bgcolor ="#ADD8E6"

我希望有人可以向我解释为什么我无法在style.css中使用它,但可以在index.html中

谢谢!

1 个答案:

答案 0 :(得分:-3)

在style.css中尝试使用此代码段设置正文标记的背景颜色:

body {
    background-color: ##AABBCC;
}

W3Schools - background-color

相关问题