• [^] # Re: Balayons chez nous

    Posté par (site web personnel) . En réponse à la dépêche Appel pour le web ouvert !. Évalué à 8.

    Oui et non.
    Ils peuvent si tu prends les derniers navigateurs et les propriétés anciennes.
    Mais si tu veux être compatible avec le plus grand nombre il faut aussi les préfixes pour les versions plus anciennes de certains navigateurs qui ne supportaient pas encore la version sans préfixe.

    Mais juste pour montrer que le CSS say bô (ok c'est pas exactement du css), un petit exemple de déclaration de dégradé...

    @defmixin gradient_horizontal(START_COLOR, END_COLOR) {
     background-color: END_COLOR;
     background-repeat: repeat-x;
     /* @alternate */ background-image: -khtml-gradient(linear, left top, right top, from(START_COLOR), to(END_COLOR)); /* Konqueror */
     /* @alternate */ background-image: -moz-linear-gradient(left, START_COLOR, END_COLOR); /* FF 3.6+ */
     /* @alternate */ background-image: -ms-linear-gradient(left, START_COLOR, END_COLOR); /* IE10 */
     /* @alternate */ background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, START_COLOR), color-stop(100%, END_COLOR)); /* Safari 4+, Chrome 2+ */
     /* @alternate */ background-image: -webkit-linear-gradient(left, START_COLOR, END_COLOR); /* Safari 5.1+, Chrome 10+ */
     /* @alternate */ background-image: -o-linear-gradient(left, START_COLOR, END_COLOR); /* Opera 11.10 */
     /* @alternate */ background-image: linear-gradient(left, START_COLOR, END_COLOR); /* Le standard */
     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=START_COLOR, endColorstr=END_COLOR, GradientType=1); /* IE9 and down */
    }
    
    

    Le truc c'est que si on veut utiliser les dernières propriétés CSS ben on a pas vraiment le choix...