好吧,我输入了错误的颜色代码,并且得到了一种我似乎无法重新创建的颜色,即使是通过复制粘贴拼写错误也是如此。具体来说,它是h1出现的颜色,我无法重新创建
以下是与之相关的相关编码:
<div class="jumbotron">
<h1>The Squeegee Imperium Inc.</h1>
</div>
.jumbotron h1 {
color: ##3366FF;
}
<div class="jumbotron">
<h1>The Squeegee Imperium Inc.</h1>
<div class="contact">
<p>
If you have any comments, questions, or suggestions services you would like to see offered, would like to book our services,
or to receive or make a payment, please contact us through one of the following means.
</p>
<p>
<span style="color:#000000">By Phone:</span>
<a href="tel:1-587-707-4584">
<span style="color:##3366FF">1-587-707-4584</span></a>
</p>
<p>
<span style="color:#000000">By Email:</span>
<a href="mailto:danielbrow@thesqueegeeimperiuminc.ca">
<span style="color:##3366FF">DanielBrow@TheSqueegeeImperiumInc.ca</span></a>
</p>
<p>
<span style="color:#000000">By Mail:</span>
<span style="color:##3366FF">PO Box 42159 Southland Crossing PO T2J 7A6</span>
</p>
</div>
</div>
如您所见,每行第二个跨度的颜色代码与h1的颜色代码相同。
以下是网站http://www.thesqueegeeimperiuminc.ca/contact.html
我不能为我的生活看到为什么它改变了h1的颜色而不是其余的颜色,当它由于拼写错误而无效时也应该改变。
答案 0 :(得分:1)
在style属性中,颜色前面有两个#
个符号。摆脱一个,像这样:
<span style="color:#3366FF">PO Box 42159 Southland Crossing PO T2J 7A6</span>
它应该工作。