gpt4 book ai didi

html - 背景颜色不会改变 CSS 样式表

转载 作者:太空宇宙 更新时间:2023-11-04 06:57:22 24 4
gpt4 key购买 nike

body { background-color: bisque;
}
<!DOCTYPE html>
<html>
<head>
<title>Reading</title>
</head>
<body>
<h1>
<button><a href="index.html">Home</a></button>
<button><a href="reading.html">Reading</a><br/></button>
<button><a href="coffee.html">Coffee</a></button>
</h1>
<div>
<h1>I usually drink three to four cups of coffee on weekdays</h1>
<img src="cof1.JPG" height="171" width="294"
alt="Coffee"/>
<img src="cof2.JPG" height="168" width="300"
alt="Coffee"/>

<h2>Some of my favorite coffees are: </h2>
<OL>
<LI> Cafe Crema</LI>
<LI>Yaucono</LI>
<LI>Arabigo</LI>
<LI>Cafe Lareño</LI>
<LI>Mami</LI>
</OL>
</div>
</body>
</html>

我试了很多样式看看有什么问题,但我似乎无法改变背景颜色。该网页有效,但很简单。我需要使用 CSS 来比较这两种样式。

最佳答案

我复制并粘贴你的代码,它工作正常我想问题是你没有刷新页面尝试做硬重装CTRL+ F5 或 mac command+R

关于html - 背景颜色不会改变 CSS 样式表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52348511/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com