CSS : Initial VS IE

CSS : Initial VS IE

initial est une valeur autorisée pour chaque propriété CSS. Elle force l’utilisation de la valeur initiale de la propriété.

La propriété CSS initial peut paraitre très pratique pour éviter héritage des attributs mais cette propriété CSS3 n’est pas compatible avec Internet Explorer (6-7-8-9)

Voici quelques exemples qui vont vous aider pour faire du débug sur les I(nutil)E browsers :

// IE
line-height: inherit;
// Rest of the world
line-height: initial;

// IE
min-height: auto; 
// Rest of the world
min-height: initial;

// IE
position: static;
// Rest of the world
position : initial;

// IE
text-transform: none;
// Rest of the world
text-transform : initial;

// IE
float: none;
// Rest of the world
float : initial;

Les avis déposés

Soyez le premier à déposer un avis.

Ajouter votre avis