Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我需要帮助。基本的HTML/CSS。标题不改变颜色_Html_Css_Colors_Header_Css Selectors - Fatal编程技术网

我需要帮助。基本的HTML/CSS。标题不改变颜色

我需要帮助。基本的HTML/CSS。标题不改变颜色,html,css,colors,header,css-selectors,Html,Css,Colors,Header,Css Selectors,我需要帮助。我刚刚开始使用CSS/HTML,以前我可以在使用CSS的网站中更改页面标题1内容的颜色。现在我已经尝试了完全相同的代码行,但它仍然是黑色的 以下是HTML: <!DOCTYPE HTML> <html lang = "en"> <head> <title>Pacific Trails Resort</title> <link rel ="stylesheet" href="pacific.css"> <me

我需要帮助。我刚刚开始使用CSS/HTML,以前我可以在使用CSS的网站中更改页面标题1内容的颜色。现在我已经尝试了完全相同的代码行,但它仍然是黑色的

以下是HTML:

<!DOCTYPE HTML>
<html lang = "en">
<head>
<title>Pacific Trails Resort</title>
<link rel ="stylesheet" href="pacific.css">
<meta charset="utf-8">
</head> 
<body>
<h1>Pacific Trails Resort</h1>
<div id="nav"><b>
<a href ="index.html">Home</a>&nbsp;&nbsp;
<a href ="yurts.html">Yurts</a>&nbsp;&nbsp;
<a href ="activities.html">Activities</a>&nbsp;&nbsp;
<a href ="reservations.html">Reservations</a>&nbsp;&nbsp;
</b></div>
<div id ="content">
<h2>Enjoy Nature In Luxury</h2>
<p><span class="resort">Pacific Trails Resort</span> offers a special lodging experience on the California North Coast.Relax 
in sereninty with panoramic views of the Pacific Ocean.</p>
<ul>
<li>Private yurts with decks overlooking the ocean
<li>Activities lodge with fireplace and gift shop
<li>Nightly fine dining at the Overlook Cafe
<li>Heated outdoor pool and whirlpool
<li>Guided hiking tours of the redwoods
</ul>
<div id="contact">
<span class="resort">Pacific Trails Resort</span>
<br>12010 Pacific Trails Road
<br>Zephyr, CA 95555
<br>
<br>888-555-5555
</div>
<div id="contact"><small><i>
Copyright &copy; 2011 Pacific Trails Resort
<br><a href= "mailto:nathan@griffin.com"> nathan@griffin.com</a>
</i></small></div>
</div>
</body>
</html>
有人能告诉我哪里出了问题吗

请注意,您正在将其设置为
#000033
,这是一种非常深的蓝色(应用正确,但可能会遗漏,因为它类似于黑色)

当我任意地将它更改为不同的颜色(即,
#BADA55
)时,它仍然可以正常工作,并且更加可见。

对我来说似乎很好

请注意,您正在将其设置为
#000033
,这是一种非常深的蓝色(应用正确,但可能会遗漏,因为它类似于黑色)

当我随意将其更改为不同的颜色(即,
#BADA55
)时,它仍然可以正常工作,并且更加可见。

更改:

nav { ... }
致:

更改:

nav { ... }
致:


你确定吗<代码>颜色:#000033非常暗,将其更改为明显的颜色,如
颜色:#FF0000
和它的红色与我预期的一样您在css中缺少
nav
=>
#nav
之前的哈希,因为您正在使用
您确定吗<代码>颜色:#000033非常暗,将其更改为明显的颜色,如
颜色:#FF0000
和它的红色与我预期的一样您在css中缺少
nav
=>
#nav
之前的散列,因为您正在使用

#nav { ... }