the relevant part of my code is:
<p style="font-family:'impact', color:red">
something
</p>
The problem is I can't use both the color and the font together.
If I use the font-family
property alone, it works perfectly.
If I use the color
property alone, it works perfectly.
But if I use both properties together, as shown above, neither of them work.
What error am I making in my inline style code? What is the proper way to use the style attribute to change multiple CSS properties?
question from:
https://stackoverflow.com/questions/65645007/how-do-i-change-font-color-in-html 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…