I have a website that I am developing using CSS3 and I have h1
tag for the title:
<h1>main title</h1>
Now I want the title to be in a different color:
<h1>main <span>title</span></h1>
So I do:
h1 {
color: #ddd;
}
h1 span {
color: #333;
}
Is there a way not to use the span
tag and only specify in CSS the last word to be a different color?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…