gpt4 book ai didi

html 不会转到 css,因此不会改变颜色

转载 作者:太空宇宙 更新时间:2023-11-04 00:55:37 25 4
gpt4 key购买 nike

我的代码如下。它把它发布在我的整个网页上,而不是仅仅发布在那个图片上,我不太明白为什么。

dt {
font: Arial, Helvectica, sans-serif;
size: .9em;
weight: bold;
color: (dark red (#6b1101);
line-height: 2em;
}

dd {
font: Arial, Helvectica, sans-serif;
size: .9em;
weight: bold;
color: (dark red (#6b1101);
line-height: 2em;
}

#Wrapper {
width: 700px;
text-align: left;
margin: auto;
background-color: #F7EED7;
}

#imgtop {
width: 700px;
}

#leftnav {
background-color: #F7EED7;
padding: 10px;
float: left;
width: 150px;
}

#leftnav a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
font-weight: bold;
text-transform: uppercase;
color: #000033;
text-decoration: none;
text-indent: 0px;
display: block;
}

#leftnav a:visited {
font-family: Arial, Helvetica, sans=serif;
font-size: 1em;
font-weight: bold;
text-transform: uppercase;
color: #660066;
text-decoration: none;
text-indent: 0px;
display: block;
}

#leftnav a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
font-weight: bold;
text-transform: uppercase;
color: #000033;
text-decoration: none;
text-indent: 0px;
display: block;
background-color: #CCCCCC;
}

body {
background-color: #FFFFFF;
}

#maintext {
background-color: #F7EED7;
float: right;
width: 500px;
padding: 10px;
}

h1 {
color: red
}
<!doctype html>

<head>
<title>Cafe Townsend: Wine Tasting Terms </title>
<link type="text/css" rel="stylesheet" href="cafe.css">
<meta charset="utf-8">

</head>
<div id="leftnav">
<p><a href="index.html">Home</a></p>
<p><a href="menu.html">Menu</a></p>
<p><a href="location.html">Location</a></p>
<p><a href="RestaurantInfomation.html">Restaurant Infomation</a></p>
<p><a href="ResturantReview.html">Restaurant Review</a></p>
<p><a href="specialevents.html">Special Events</a></p>
<p><a href="dvd.html">DVD</a></p>
<p>
<a href="wine-list.html">
<img src="../images/wine_header.jpg" alt="Wine Ad" width="150" height="100" border="0" /></a>
</p>
</div>
<p>Greeting: &quot;Hello, World!&quot;</p>
<h1>Knowing your wines</h1>

<dl>
<dt>Acid, acidity</dt>

<dd>The tart (or in excess, sour) quality that wine's natural acidity imparts and that gives the wine a sense of body and structure. Required for proper balance; too much or too little constitutes a flaw.</dd>

<dt>Almond</dt>

<dd>A light bitter, nutlike quality sometimes noted in Italian white wines.</dd>

<dt>Anise</dt>

<dd>Faint licorice, a pleasant element in some Spanish reds; may indicate, however, that the wine has been artificially acidified, a practice that may improve short-term enjoyment but tends to make wines that cellar poorly.</dd>

<dt>Attack</dt>

<dd>A technical term for the first impression the wine makes as it reaches your palate, distinguished (in time sequence) from &quot;middle&quot; or &quot;"mid-palate"&quot; and &quot;finish&quot; or &quot;aftertaste.&quot;</dd>

<dt>Bouquet, bottle bouquet</dt>

<dd>As a technical term, the smells that develop with age in the wine bottle, as opposed to &quot;aroma,&quot; the smells associated with the fruit. I have little use for distinctions this narrow and try to avoid using them in my wine notes.</dd>
<dt>Earthy</dt>

</dd>Generic term for a range of aromas and flavors associated with organic qualities like &quot;barnyard,&quot; &quot;forest floor,&quot; &quot;merde,&quot; and &quot;tree bark.&quot; May be associated with brettanomyces (see above) but can also result
from oak aging or the nature of specific grapes. Mourvedre, for instance, imparts a characteristic earthy aroma. Again, not necessarily a fault, but &quot;earthy&quot; wines tend to be controversial, and a little bit is usually enough.</dd>
</dl>
</body>

</html>

所以出于某种原因,我的 html 没有获取 dt 和 dd,也没有将颜色从正常更改为红色。我不明白,它进入文件(它应该)但什么也没做。已尝试检查文件名,确保路径正确(它们是)。它们在同一个文件夹中。

最佳答案

取出权重:粗体;这破坏了下面的 CSS。它应该是 font-weight:bold。

font-dd {font: Arial, Helvectica, sans-serif;
size: .9em;
font-weight: bold;
color:red;
line-height: 2em; }

关于html 不会转到 css,因此不会改变颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54839526/

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