简体   繁体   English

无法更改背景颜色

[英]Cant get the background colour to change

I'm currently learning Html and CSS我目前正在学习 Html 和 CSS

I have been following courses for a few days and been doing a Udemy course as i learn better with visual aid over just reading texts.我已经学习了几天的课程,并且一直在学习 Udemy 课程,因为我通过视觉辅助比阅读课文学得更好。

I'm currently trying to get the background of the website to change colder etc and i have copied the code word for word and it worked for them but it hasn't for me I've linked the css and html file and they are both in the same folder.我目前正在尝试让网站的背景变冷等,我已经逐字复制了代码,它对他们有用,但对我没有用,我已经链接了 css 和 html 文件,它们都是在同一个文件夹中。

Picture blow图片吹

Html file that has the css file linked with code Html 文件,其中包含与代码链接的 css 文件

Css file with the code to change html and body background Css 文件,其中包含更改 html 和正文背景的代码

"These isn't the colours I'm going with just trying bright to see if can get them to change" “这些不是我要尝试的颜色,只是尝试明亮看看是否可以让它们改变”

<link rel="stylesheet" type="text/css" href="style.css">

use href使用 href

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM