2013-06-04 13 views
0

Ci-dessous le code. J'ai essayé de faire du hover dans Font-awesome. Mais ça ne marche pas !! S'il vous plaît aider ..Font-awesome ... hover ne fonctionne pas pourquoi?

<!DOCTYPE html> 
<html> 
<head> 
<link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet"> 
<meta charset=utf-8 /> 
<title>JS Bin</title> 
<style> 
    .icon-facebook-sign:before {color:lightblue;} 
    .icon-facebook-sign:hover{color:red;} 
    .icon-twitter-sign:hover{color:#00BEF6} 
    .icon-google-plus-sign:hover{color:red;} 
</style> 
</head> 
<body> 
<li style="float:left;"> 
    <!-- start social bookmarks --> 
    <div style="font-size: 32px; color: grey;"> 
    <i class="icon-facebook-sign" style="color:red; margin-left: 0px; :hover{color:lightblue;}">    
</li> 
    <i class="icon-twitter-sign" style="margin-left: -12px;"></i> 
    <i class="icon-linkedin-sign" style="margin-left: -12px;"></i> 
    <i class="icon-google-plus-sign" style="margin-left: -12px;"></i> 
    </div> 
    <!-- end social bookmarks --> 
</li> 
</body> 
</html> 

J'ai exécuté ce billet depuis: http://jsbin.com/idicib/3/edit

+0

Qu'est-ce qui ne fonctionne pas? Élaborer. De plus, lorsque je planerai sur vos icônes sociales, je peux voir l'effet de hover. – Nitesh

+0

Où est votre problème ?? –

Répondre

0

Ici vous a ajouté que le font-awesome mais pas twitter-bootstrap. Ajoutez ce lien à votre code et essayez. Il travaillera <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">

<!DOCTYPE html> 
<html> 
<head> 
<link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet"> 
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet"> 
<meta charset=utf-8 /> 
<title>JS Bin</title> 
<style> 
    .icon-facebook-sign:before {color:lightblue;} 
    .icon-facebook-sign:hover{color:red;} 
    .icon-twitter-sign:hover{color:#00BEF6} 
    .icon-google-plus-sign:hover{color:red;} 
</style> 
</head> 
<body> 
<li style="float:left;"> 
<!-- start social bookmarks --> 
<div style="font-size: 32px; color: grey;"> 
<i class="icon-facebook-sign" style="color:red; margin-left: 0px; :hover{color:lightblue;}">    
</li> 
    <i class="icon-twitter-sign" style="margin-left: -12px;"></i> 
    <i class="icon-linkedin-sign" style="margin-left: -12px;"></i> 
    <i class="icon-google-plus-sign" style="margin-left: -12px;"></i> 
    </div> 
    <!-- end social bookmarks --> 
</li> 
</body> 
</html> 

Voici la démo: http://jsbin.com/idicib/4/edit

+0

son travail .. merci .. – user2446821

+0

vous accueillir. :) – Selvamani

0

J'ai édité le jsbin que vous avez fourni.

http://jsbin.com/idicib/5/edit

Quand j'ai enlevé quelques styles de votre code, il a commencé à travailler. : avant et le style en ligne pour: hover créait le problème.

J'espère que c'est ce que vous voulez.