tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
2
ZUGRIFFE
1220
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
DIESES THEMA IST
GESCHLOSSEN
  1. #1
    Morpheus Morpheus ist offline Mitglied Silber
    Registriert seit
    Feb 2002
    Ort
    dsanjlkfdsafds
    Beiträge
    76
    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
     

  2. #2
    rootssw rootssw ist offline Mitglied Platin
    Registriert seit
    Aug 2003
    Beiträge
    593
    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."; ?>

  3. #3
    Morpheus Morpheus ist offline Mitglied Silber
    Registriert seit
    Feb 2002
    Ort
    dsanjlkfdsafds
    Beiträge
    76
    Klasse! So funktioniert es! Danke!

    mfg, Morpheus
     

Ähnliche Themen

  1. Links andauernd ändern nevt...
    Von EuropaChat im Forum Java
    Antworten: 1
    Letzter Beitrag: 01.09.10, 23:10
  2. Links finden und ändern
    Von EGJSoldier im Forum PHP
    Antworten: 1
    Letzter Beitrag: 28.03.10, 01:05
  3. Farbe des aktiven Links ändern
    Von mina_ im Forum Javascript & Ajax
    Antworten: 1
    Letzter Beitrag: 09.04.08, 18:19
  4. wie kann ich die links ändern
    Von serseri im Forum Flash Plattform
    Antworten: 1
    Letzter Beitrag: 24.09.05, 07:22
  5. Firefox-Standardverhalten bei Links ändern
    Von Sven Mintel im Forum Microsoft Windows
    Antworten: 9
    Letzter Beitrag: 13.11.04, 11:20