ERLEDIGT
NEIN
NEIN
ANTWORTEN
2
2
ZUGRIFFE
1220
1220
EMPFEHLEN
-
Hallo,
Ich habe in einer CSS-Datei folgenden Code:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<style> a:link { color: #000000; text-decoration: none; font-family: Arial; font-size: 14px; font-style: normal; font-weight: bold; } a:visited { color: #838383; text-decoration: none; font-family: Arial; font-size: 14px; font-style: normal; font-weight: bold; } a:hover { color: #454545; font-family: Arial; font-size: 14px; font-style: normal; font-weight: bold; } a:active { color: #FF0000; text-decoration: none; font-family: Arial; font-size: 14px; font-style: normal; font-weight: bold; } </style>
Nun binde ich diese Datei in ein html-Dokument ein:
Code :1
<link rel="stylesheet" type="text/css" href="css/style2.css" />
Alles funktionert, außer eins:
Wenn ich einen Link erstelle, der noch nicht aufgerufen wurde (nicht visited) bleibt immer noch der Standard Link (also blau und unterstrichen) obwohl ich ihn doch umdefiniert habe.... ich weiß nicht warum... kann mir da jemand helfen?
Danke, Morpheus
-
Hi Morpheus!
Also, wenn du einen Stylesheet in eine extra Datei packst, brauchst du in diese nicht noch extra die Style-Tags zu schreiben.
Code :1
<style></style>
Lass' die weg, dann solte es funktienieren (bei mir ist das der Fall).<?php if ($sein || !$sein) echo "Das ist hier die Frage."; ?>
-
Klasse! So funktioniert es! Danke!
mfg, Morpheus
Ähnliche Themen
-
Links andauernd ändern nevt...
Von EuropaChat im Forum JavaAntworten: 1Letzter Beitrag: 01.09.10, 23:10 -
Links finden und ändern
Von EGJSoldier im Forum PHPAntworten: 1Letzter Beitrag: 28.03.10, 01:05 -
Farbe des aktiven Links ändern
Von mina_ im Forum Javascript & AjaxAntworten: 1Letzter Beitrag: 09.04.08, 18:19 -
wie kann ich die links ändern
Von serseri im Forum Flash PlattformAntworten: 1Letzter Beitrag: 24.09.05, 07:22 -
Firefox-Standardverhalten bei Links ändern
Von Sven Mintel im Forum Microsoft WindowsAntworten: 9Letzter Beitrag: 13.11.04, 11:20





Login





