Afficher un message
Vieux 05/03/2008, 13h43   #3
Rik Wasmus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Subclassing a style class?

On Tue, 04 Mar 2008 18:41:01 +0100, Johannes Koch <koch@w3development.de>
wrote:

> darius schrieb:
>> is it possible to subclass a style class and gives it additional
>> properties or override some properties, e.g.
>> ..foo {
>> .......
>> }
>> /* inherit all of foo and make font red */
>> ..foored << .foo {
>> color: red;
>> }

>
> No, but
>
> .foo, .foored {
> .......
> }
>
> .foored {
> color: red;
> }
>
> while foored is hardly an appropriate class name.


Or just:
..foo{
.....
}
..foored{
color: red;
}
<tag class="foo foored"></tag>
--
Rik Wasmus
  Réponse avec citation
 
Page generated in 0,05642 seconds with 9 queries