Laissez < span >< a href = « # » dans cette structure il y a une couleur à l’affichage du texte, aucun affichage du texte d’une autre couleur...
≪ Style type = « Text/css »
* {Margin : 0 ; padding : 0 ; font-size : 12px ;}
Body {background : #EEE ;}
A {color : #666 ;}
Li {List-style : none ;}
UL {width : 500px ; height : 230px ; background : #fff ; auto marge : 50px ;}
UL li {width : 500px ; height : auto ; overflow : hidden ; marge-bas : 5px ;}
UL Li span {display : block ; float : left ; width : 100px ; height : 20px ;}
Le
Le
≪ Li >< durée >< a href = « # », « Special topic » < /a >< / span >< a href = « # » > année 2005 mort accident en plastique Super reine Bein Le
≪ Li >< durée >< a href = « # » >< / a >< / span >< a href = « # » > année 2005 accident en plastique Super reine Bein mort < /a >< / Li >
Le
Laissez < span >< a href = « # » dans cette structure il y a une couleur à l’affichage du texte, aucun texte pour afficher une autre couleur du code JQ n’est comme suit :
≪ Script type = « Text/javascript »
$ (Function () {}
$ (« Span Ul Li »). chaque (function () {}
If (this). trouver (« A:eq (0) »). Text () == « ») {}
$ (This). CSS (« Background », « bleu ») ;
} Else {}
$ (This). CSS (« Fond », « Rouge ») ;
}
});
});
Le