IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

souci compatiblité ie7 sur un<article>


Sujet :

CSS

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Technicien réseau
    Inscrit en
    Janvier 2013
    Messages
    34
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Technicien réseau

    Informations forums :
    Inscription : Janvier 2013
    Messages : 34
    Points : 28
    Points
    28
    Par défaut souci compatiblité ie7 sur un<article>
    Bonjour a tous.
    j’essaie de rendre mon fichier css compatible avec ie6,7et8.
    pour ça j'utilise html5shiv et les classes conditionnel.
    je rencontre un problème que je n'arrive pas a résoudre.
    un encadré bleu est visible dans la dernière version des navigateur,
    mais pas sur une page sous ie7.
    cet encadré ce fait dans la balise <article> qui fonctionne sous ie678, sans aucun souci sur d'autre page.il n'y a que cette page qui me pose problème.
    voici mon css :

    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    article,aside{
    margin-top: -1em;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin-left :auto;
    margin-right: auto;
    }
    .ie678 article,aside
    {
    margin-top: -1em;
    vertical-align: top;
    position: relative;
    margin-left :auto;
    margin-right: auto;
    behavior: url(ie-css3.htc);
    }
    article{
    /*border-radius*/
    margin-right:5px;
    -webkit-border-radius:10px;
       -moz-border-radius:10px;
            border-radius:10px;
    text-align:left;
    padding-left:20px;
    padding-right:18px;
    width:678px;
    background-color:rgba(51, 153, 255,0.6);
    font-size:1.5em;
     
    /*box-shadow*/
    -webkit-box-shadow:0px 2px 5px #1c1a19;
       -moz-box-shadow:0px 2px 5px #1c1a19;
            box-shadow:0px 2px 5px #1c1a19;
    }
    .ie678 article
    {
    background-color:#337BFF;
    width:678px;
    }
    et voici ma page html
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=charset=ISO-8859-1" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <link rel="shortcut icon" href="images/logo.ico" type="image/x-icon"/>
    <!--[if lte IE 7]><html class="ie67 ie678" lang="fr"> <![endif]-->
    <!--[if IE 8]> <html class="ie8 ie678" lang="fr"> <![endif]-->
    <!--[if gt IE 8]><!--> <html lang="fr"> <!--<![endif]-->
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    </head>
    <body>
    <header>
    <div id="titre_principal">
    <img src="images/titre.png" alt="titre" id="titre"/>
    </div>
    </header>
    <section>
    <article>
    <p><h3>Votre message a bien été pris en compte</h3>
    </article>
    </section>
     
    </body>
    </html>
    d'avance merci !!

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 959
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 959
    Points : 44 122
    Points
    44 122
    Par défaut
    Bonjour,
    il te faut commencer par construire correctement ta page
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    <!DOCTYPE HTML>
    <!--[if lte IE 7]><html class="ie67 ie678" lang="fr"> <![endif]-->
    <!--[if IE 8]> <html class="ie8 ie678" lang="fr"> <![endif]-->
    <!--[if gt IE 8]><!--> <html lang="fr"> <!--<![endif]-->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=charset=ISO-8859-1" />
    <title></title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <link rel="stylesheet" type="text/css" href="style.css" />
    <link rel="shortcut icon" href="images/logo.ico" type="image/x-icon"/>

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Technicien réseau
    Inscrit en
    Janvier 2013
    Messages
    34
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Technicien réseau

    Informations forums :
    Inscription : Janvier 2013
    Messages : 34
    Points : 28
    Points
    28
    Par défaut
    merci pour la correction du script.

    et pour mon problème aurais tu une idée?

  4. #4
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 959
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 959
    Points : 44 122
    Points
    44 122
    Par défaut
    Citation Envoyé par Klink
    ...et pour mon problème aurais tu une idée?
    pas vu d'encadré bleu, ou alors je ne sais pas ou regarder.

    Test fait sous IE7.

  5. #5
    Nouveau membre du Club
    Homme Profil pro
    Technicien réseau
    Inscrit en
    Janvier 2013
    Messages
    34
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Technicien réseau

    Informations forums :
    Inscription : Janvier 2013
    Messages : 34
    Points : 28
    Points
    28
    Par défaut
    j'y comprend pas grand chose, mais c'est résolu ça venait d'une erreur généré par mon code php, qui faisait que que mon encadré bleu ne s'affichait pas sur
    ie 6,7et 8.

    merci pour vos réponses

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 22/03/2007, 16h26
  2. Réponses: 8
    Dernier message: 04/08/2006, 15h24
  3. [FLASH MX] Soucis avec text sur banniere flash
    Par BeRoots dans le forum Flash
    Réponses: 14
    Dernier message: 11/03/2006, 13h38
  4. petit soucis pour lire sur un port usb le createfile n'accep
    Par anthonycosson dans le forum Windows
    Réponses: 5
    Dernier message: 14/02/2006, 09h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo