Condition css different naviguateur

Résolu/Fermé
griko Messages postés 343 Date d'inscription samedi 31 janvier 2009 Statut Membre Dernière intervention 29 avril 2014 - 14 oct. 2009 à 13:20
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 - 14 oct. 2009 à 16:06
Bonjour,
je voudrais afficher quelque chose si le navigateur est différent IE et la version de IE inférieur à IE 7
En gros pour tous les navigateur sauf les versions antérieur à IE7 on affiche un texte.

<!--[if lt IE 7]> ça pour si < IE7 mais la différence, on la met comment ?

2 réponses

RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
14 oct. 2009 à 15:00
Salut voila un exemple assez complet !
qui devrait t eclairer

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>
      RAD ZONE Webcreation
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="author" content="http://radservebeer.free.fr" />
    <meta name="generator" content="PSPad editor, www.pspad.com" />
  </head>
  <body>
    <div id="info">
      <h2>
        Commentaires Conditionnel pour Internet Explorer et les navigateurs non-IE
      </h2><!--[if IE]>
                        <h1>Vous utilisez Internet Explorer</h1>
                        <![endif]-->
      <!--[if IE 5]>
                        <h1>Version 5</h1>
                        <![endif]-->
      <!--[if IE 5.0]>
                        <h1>Version 5.0</h1>
                        <![endif]-->
      <!--[if IE 5.5]>
                        <h1>Version 5.5</h1>
                        <![endif]-->
      <!--[if IE 6]>
                        <h1>Version 6</h1>
                        <![endif]-->
      <!--[if IE 7]>
                        <h1>Version 7</h1>
                        <![endif]-->
      <!--[if IE 8]>
                        <h1>Version 8</h1>
                        <![endif]-->
      <!--[if !IE]><!-->
      <h1>
        Vous n&#39;utilisez pas Internet Explorer
      </h1><!--<![endif]-->
      <!--[if IE 6]><!-->
      <h1>
        Vous utilisez Internet Explorer version 6 OU un navigateurs non-IE
      </h1><!--<![endif]-->
      <!--[if IE 6]>
IE6 et non <!-->
      <h1>
        Vous utilisez un navigateur non-IE <!--<![endif]-->
      </h1>
    </div>
  </body>
</html>

0
griko Messages postés 343 Date d'inscription samedi 31 janvier 2009 Statut Membre Dernière intervention 29 avril 2014 10
14 oct. 2009 à 15:53
Donc si j'ai bien compri, je devrais utiliser : <!--[if gte IE 7]><!--><![endif]--> uniquement ? Mais il manque une fermeture non ?
0
RAD ZONE Messages postés 5230 Date d'inscription samedi 20 janvier 2007 Statut Contributeur Dernière intervention 17 août 2024 1 360
14 oct. 2009 à 16:06
<!--[if gte IE7]> 
 <![endif]-->
0