03. juli 2002 - 10:07
Der er
16 kommentarer og 1 løsning
CSS
Kan man have flere typer af a:link {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000; text-decoration: underline} a:visited {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000; text-decoration: none} a:hover {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #ff0000; text-decoration: underline} a:active {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000; text-decoration: none; font-style: plain; font-weight: bold} i det samme stylesheet, eller er man nødsaget til at henvise til et andet
Annonceindlæg fra QNAP
du kan lave a.menu:link og indsætte en class="menu" i din tag
a.menu:link {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000; text-decoration: underline} a.menu:visited {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000; text-decoration: none} a.menu:hover {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #ff0000; text-decoration: underline} a.menu:active {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000; text-decoration: none; font-style: plain; font-weight: bold}
Grunden til at jeg spørger er at der er flere andre ting som også gerne skulle slå igennem på siden. Så jeg vil helst ikke til at henvise til andre stylesheets
Det virker jo fint. Tak for hjælpen
Så mangler vi bare at få svaret og lukket ;-)
et lille tip: du kan iøvrigt gruppere din css på denne måde for at gøre det mere overskueligt: a:link, a:visited , a:hover, a:active {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000;} a:link, a:hover{text-decoration: underline} a:visited, A.active{text-decoration: none} a:active{font-style: plain; font-weight: bold}
Og så skulle fejlene vist være rettet :-) a:link, a:visited , a:hover, a:active {font-family: Tahoma, Humanist 777 BT, Arial; font-size: 12px; color: #000000;} a:link, a:hover{text-decoration: underline} a:visited, a:active{text-decoration: none} a:active{font-style: plain; font-weight: bold}
03. juli 2002 - 10:37
#10
font-family: Tahoma, Humanist 777 BT, Arial; Bør ændres til: font-family: Tahoma, "Humanist 777 BT", Arial; ... prøv i øvrigt at validere det...
03. juli 2002 - 10:44
#11
03. juli 2002 - 11:03
#12
jangraugaard >> kan a:link, a:visited , a:hover, a:active { ikke blot sammenfattes til a { ? mvj JakobA
03. juli 2002 - 12:04
#13
skal du ikke dele points?
03. juli 2002 - 12:08
#14
=>yousif: kan han det når der ikke er postet nogle svar?
03. juli 2002 - 12:23
#15
jakoba => nej, det mener jeg ikke man kan, jeg har ikke set det brugt nogen steder
03. juli 2002 - 12:24
#16
*lol* jeg er helt mærkelig i dag..
03. juli 2002 - 13:57
#17
jangravgaard> det kan man godt. a { } overskriver alle pseudo-klasserne.
Vi tilbyder markedets bedste kurser inden for webudvikling