Frage

Ich will nur der Text-Schatten auf dem Schwebezustand sein.

**JS**
Cufon.replace('.headerright', {hover: true,'fontFamily' : 'League Gothic',textShadow:'0px 1px #cccccc'});
**CSS**
.headerright{text-transform:uppercase; font-size:76px;color:#CD7674;}
.headerright a:hover{color:#444444;}
War es hilfreich?

Lösung

Der Code ist die Definition textShadow von der get-go, anstatt für das hover Ereignis.

Mit Blick auf https://github.com/sorccu/cufon/wiki/styling, sollte dies für Sie arbeiten:

Cufon.replace('.headerright', {
    'fontFamily': 'League Gothic',
    hover: {
        textShadow: '0px 1px #cccccc'
    }
});

Andere Tipps

Cufon.replace('.menu_item', {fontFamily: 'museo700_regular',hover: {textShadow: '0px 1px #fff'},textShadow:'0px 1px #fff', hover:true});
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top