@@webeditor
a[href*=".pdf"] { /* CSS-Regeln für ein PDF-Icon */ }
und letzteres hab ich tatsächlich eingebaut.
Hm, der Selektor matcht auch auf <a href="mein.pdf-erklärvideo.mp4">
.
Besser wäre wohl zu kucken, ob .pdf
am Ende oder .pdf#
irgendwo auftaucht:
a[href$=".pdf"], a[href*=".pdf#"] { … }
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon