Ich habe diesen Anker:Styling Anchor Text (ein Name)
<h2><a name="facebook">facebook</a></h2>
<h2><a name="mobilephone">mobilephone</a></h2>
Im Moment ist der Text blau ist, weil es ein Link ist. Ich versuche, die Farbe so zu ändern, dass sie die gleiche wie alle anderen H2-Texte sind.
Ich habe versucht:
.name {
color:red !important;
}
:name {
color:red !important;
}
:facebook {
color:red !important;
}
a:name {
color:red !important;
}
a:facebook {
color:red !important;
}
a[name=facebook]{
color:red !important;
}
a[name]{
color:red !important;
}
welcher Browser ?? –
können Sie versuchen, 'h2 a {Farbe: rot! Wichtig; } ' –