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

HTML Discussion :

Problème couleur d'arrière plan des frames sous Firefox


Sujet :

HTML

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mai 2008
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2008
    Messages : 2
    Points : 1
    Points
    1
    Par défaut Problème couleur d'arrière plan des frames sous Firefox
    Bonjour àtous,

    J'ai un site et plusieurs visiteurs m'ont dit que sous firefox la couleur d'arrière plan de mes frames est grise au lieu d'être transparente et que certaine bordures sont noire et épaisses.

    Voici le code de mes frames :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     <div align="center">
    <iframe name="iframe2" src="http://fascinating.kristen.free.fr/menu02.htm" frameborder="0" scrolling="auto" width="220" height="2200" style="FILTER: chroma (color=eeeeee)"></iframe> 
    <iframe name="iframe1" src="http://fascinating.kristen.free.fr/news.php" frameborder="0" scrolling="auto " width="600" height="2200" style="FILTER: chroma (color=eeeeee)"></iframe></div>
    J'éspère que vous pourrez m'aider à résoudre mon problème. merci d'avance.

  2. #2
    Membre émérite Avatar de Erwan31
    Profil pro
    Inscrit en
    Février 2008
    Messages
    2 177
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 2 177
    Points : 2 444
    Points
    2 444
    Par défaut
    Bonsoir,
    c'est un peu étonnant étant donné que filter est une propriété Microsoft mais remplaces FILTER: chroma (color=eeeeee) par
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    et
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    allowtransparency="true"

    Pour les bordures je ne sais pas. Tu dois fournir tout le code.

  3. #3
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mai 2008
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2008
    Messages : 2
    Points : 1
    Points
    1
    Par défaut
    J'ai essayé les deux code et sa ne marche pas. En plus dès que je les utilise ça fait le même problème avec IE.

    Voici une cap de ce que je vois avec firefox si ça peut vous aidez :
    http://img142.imageshack.us/img142/2860/cap2jv7.jpg

    Et voici le code entier de ma page :

    Code : 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
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head> 
    <link href="kkstyle.css" type=text/css rel="stylesheet"/> 
    <base target="_blank"/> 
    <title>●● Fascinating Kristen ●● Votre 1&egrave;re source fran&ccedil;aise sur Kristen Stewart</title> 
    <style type="text/css"> 
    <!-- 
    body { 
    background-image: url(<a href="http://fascinating.kristen.free.fr/bg0.jpg%29;" target="_blank">http://fascinating.kristen.free.fr/bg0.jpg);</a> 
    background-repeat: repeat-x; 
    margin-top: 0px; 
    background-color: #F8F3F9; 
    } 
    .Style3 {color: #EEEEEE} 
    .Style4 {color: #CC0066} 
    --> 
    </style> 
    <script type="text/javascript"> 
    <!-- 
    function MM_swapImgRestore() { //v3.0 
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 
    } 
    function MM_preloadImages() { //v3.0 
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 
    } 
     
    function MM_findObj(n, d) { //v4.01 
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 
    if(!x && d.getElementById) x=d.getElementById(n); return x; 
    } 
     
    function MM_swapImage() { //v3.0 
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 
    } 
    //--> 
    </script> 
    </head> 
     
    <body onLoad="MM_preloadImages('maccueil02.jpg','mkristen02.jpg','mgalerie02.jpg','mmulti02**.jpg','monline02.jpg')"> 
    <span class="Style4"></span> 
    <div align="center"><img src="http://fascinating.kristen.free.fr/designv2.jpg" width="830" height="343" /></div> 
    <div align="center"> 
    <p><a href="http://fascinating.kristen.free.fr/news.php" target="iframe1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','maccueil02.jpg',1)"><img src="http://fascinating.kristen.free.fr/maccueil.jpg" name="Image2" width="87" height="31" border="0" id="Image2" /></a><a href="http://fascinating.kristen.free.fr/kristen.htm" target="iframe1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','mkristen02.jpg',1)"><img src="http://fascinating.kristen.free.fr/mkristen.jpg" name="Image3" width="86" height="31" border="0" id="Image3" /></a><a href="http://fascinating.kristen.free.fr/galerie/" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','mgalerie02.jpg',1)"><img src="http://fascinating.kristen.free.fr/mgalerie.jpg" name="Image4" width="83" height="31" border="0" id="Image4" /></a><a href="http://fascinating.kristen.free.fr/media.htm?" target="iframe1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','mmulti02.jpg',1)"><img src="http://fascinating.kristen.free.fr/mmulti.jpg" name="Image5" width="122" height="31" border="0" id="Image5" /></a><a href="http://fascinating.kristen.free.fr/site.htm" target="iframe1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','mwebsite02.jpg',0)"><img src="http://fascinating.kristen.free.fr/mwebsite.jpg" name="Image6" width="91" height="31" border="0" id="Image6" /></a><a href="http://fascinating.kristen.free.fr/online.htm" target="iframe1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','monline02.jpg',1)"><img src="http://fascinating.kristen.free.fr/monline.jpg" name="Image7" width="82" height="31" border="0" id="Image7" /></a><span class="Style3"> .....</span><br /> 
    </p> 
    </div>
    <div align="center">
    <iframe name="iframe2" src="http://fascinating.kristen.free.fr/menu02.htm" frameborder="0" scrolling="auto" width="220" height="2200" style="FILTER: chroma (color=eeeeee)"></iframe> 
    <iframe name="iframe1" src="http://fascinating.kristen.free.fr/news.php" frameborder="0" scrolling="auto " width="600" height="2200" style="FILTER: chroma (color=eeeeee)"></iframe></div>
    </body> 
    </html>

  4. #4
    Membre chevronné Avatar de Er3van
    Homme Profil pro
    Architecte Logiciel
    Inscrit en
    Avril 2008
    Messages
    1 430
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Architecte Logiciel
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2008
    Messages : 1 430
    Points : 2 227
    Points
    2 227
    Par défaut
    Citation Envoyé par Erwan31 Voir le message
    Bonsoir,
    c'est un peu étonnant étant donné que filter est une propriété Microsoft mais remplaces FILTER: chroma (color=eeeeee) par
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    et
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    allowtransparency="true"
    Euh, en quoi c'est étonnant que ça ne marche pas sous FF puisque c'est propriété billou ?
    Et "filter : Alpha(opacity=0)" et "filter : Chroma ( color = #FFFFFF )" sont deux choses différentes. Son problème à mon avis c'est qu'il n'utilise pas des images transparente mais qu'il veut les rendre transparente sur le web.

    La solution est simple, fais des images vraiment transparentes, via Photoshop ou n'importe quel logiciel qui le permet, que ce soit .gif ou .png ( .gif conseillé pour IE6 il me semble ).

    Il n'y a de toute façon pas de correspondance à filter:chroma() actuellement sur d'autres navigateur qu'IE.

    Pour les bordures, sous IE elles sont mises à l'intérieure du block, et FF à l'extérieur, si t'as des margin négatif ça peut jouer....
    One minute was enough, Tyler said, a person had to work hard for it, but a minute of perfection was worth the effort. A moment was the most you could ever expect from perfection.

    -- Chuck Palahniuk, Fight Club, Chapter 3 --

Discussions similaires

  1. Réponses: 1
    Dernier message: 11/01/2008, 10h27
  2. [TABLE] Couleurs d'arrière-plan des TR alternées
    Par arkienou dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 17/02/2007, 15h48
  3. Modifier la couleur d'arrière plan des dossiers
    Par FRED.G dans le forum Autres Logiciels
    Réponses: 5
    Dernier message: 26/04/2006, 13h09
  4. couleur d'arrière plan
    Par PAUL87 dans le forum Access
    Réponses: 4
    Dernier message: 27/12/2005, 11h23

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