Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1427 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Firefox OK, Internet Explorer Problème

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Firefox OK, Internet Explorer Problème

n°1508832
lyneus
Posté le 30-01-2007 à 20:12:04  profilanswer
 

Bonsoir, mon site internet ( http://sas.pursud.org/Divers/Site_Multy_MyGames/ ) à un problème d'affichage avec internet explorer... contrairement à firefox qui s'affiche parfaittement bien, donc j'aimerais savoir d'où celà viens.
Si quelqu'un à une solution à ce problème, n'hésitez pas ;) .
Merci
 
http://img235.imageshack.us/img235/7329/sanstitreoi7.th.png

mood
Publicité
Posté le 30-01-2007 à 20:12:04  profilanswer
 

n°1508879
gebruik
Posté le 30-01-2007 à 23:00:36  profilanswer
 

Commence déjà par faire de conteneurs "propres", sans balises br répétées...

n°1508927
gatsu35
Blablaté par Harko
Posté le 31-01-2007 à 06:55:05  profilanswer
 

gebruik a écrit :

Commence déjà par faire de conteneurs "propres", sans balises br répétées...


pour rappel je lui avait fait des conteneurs propres
 
au niveau de la CSS qui déclare ton block au centre, rajoute un zoom:1, cela vient de là.
 
et fourni nous ton code CSS et ton code HTML, car depuis la derniere fois ou je t'avais livré un template propre, tu as du le pourrir depuis

n°1509326
lyneus
Posté le 31-01-2007 à 21:03:18  profilanswer
 

Citation :

tu as du le pourrir depuis


^^ :non:  
 
Ca va faire un peu long mais bon...
 

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.                    
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4.                    
  5.                    
  6. <head>
  7.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  8. <title>...::Multy MyGames::...</title>
  9. <link rel="shortcut icon" type="image/x-icon" href="MMG_mini.ico" />
  10. <link rel="stylesheet" media="screen" type="text/css" title="Site Multy MyGames" href="css/mmg.css" />
  11. <link rel="stylesheet" media="screen" type="text/css" title="Site Multy MyGames" href="css/mmg2.css" />
  12.     <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
  13.     <script type="text/javascript" src="js/prototype.lite.js"></script>
  14.     <script type="text/javascript" src="js/moo.fx.js"></script>
  15.     <script type="text/javascript" src="js/litebox-1.0.js"></script>
  16. </head>
  17.                    
  18.                    
  19. <body lang="fr" onload="initLightbox()">
  20.     <div id="container">
  21.     <div id="header"><h1>Multy MyGames</h1><span class="img"></span></div>
  22.         <div id="navigation">
  23.          <div class="block">
  24. <!--Debut Waitbox-->
  25. <div id="waitDiv" class="waitbox">
  26.   <table cellpadding="6" summary="Splash-Screen Wait">
  27.     <tbody>
  28.       <tr>
  29.         <td><b>Chargement en cours</b><br /><img src="img/loading2.gif" alt="Chargement en cours, Veuillez patienter..." title="Chargement en cours, Veuillez patienter..." /><br /> Veuillez patienter </td>
  30.       </tr>
  31.     </tbody>
  32.   </table>
  33. </div>
  34. <script type="text/javascript">
  35. var DHTML = (document.getElementById || document.all || document.layers);
  36. function ap_getObj(name)
  37. {
  38.   if (document.getElementById) { return document.getElementById(name).style; }
  39.   else if (document.all) { return document.all[name].style; }
  40.   else if (document.layers) { return document.layers[name]; }
  41. }
  42. function ap_showWaitMessage(div,flag)
  43. {
  44.   if (!DHTML) return; var x = ap_getObj(div); x.visibility = (flag) ? 'visible':'hidden'
  45.   if(! document.getElementById) if(document.layers) x.left=280/2; return true;
  46. }
  47. ap_showWaitMessage('waitDiv', 1);
  48. </script>
  49. <!--Fin Waitbox-->
  50.          
  51.          
  52.          
  53. <!--Titre Menu 1--><h2 class="leftcnr">Menu</h2>
  54.          
  55.          
  56.          
  57. <div class="block_ctn">
  58.        
  59. <!--Debut Menu 1--><br />
  60.             &nbsp; &nbsp;<a href="index2.html">Accueil</a>
  61.   <br /><br />
  62.   &nbsp; &nbsp;<a href="team.html">Ma Team</a>
  63.   <br /><br />
  64.   &nbsp; &nbsp;<a href="fd.html">Fonds d'&eacute;crans</a>
  65.   <br /><br />
  66.   &nbsp; &nbsp;<a href="liens.html">Liens</a>
  67.   <br /><br />
  68.   &nbsp; &nbsp;<a href="img/msn.bmp" rel="lightbox[example]" title="slash444@hotmail.fr">Contact</a>
  69.   <br /><br />
  70.   &nbsp; &nbsp;<a href="a_propos.html">A propos</a>
  71.   <br />
  72. <!--Fin Menu 1--><br />
  73.      
  74.  </div>
  75. </div>
  76.  <div class="block blk_mrg">
  77.          
  78.          
  79.          
  80. <!--Titre Menu 2--><h2 class="leftcnr">Rubriques</h2>
  81.          
  82.          
  83.          
  84.   <div class="block_ctn">
  85.       
  86.       
  87.       
  88. <!--Debut Menu 2--><br />
  89.   <center>
  90.   <a href="dow.html">Dawn of War</a>
  91.   <br />
  92.   <br />
  93.   <a href="magic.html">Magic WorkStation</a>
  94.   </center>
  95. <!--Fin Menu 2--><br />
  96.          
  97.          
  98.          
  99.   </div>
  100.  </div>
  101. </div>
  102.                    
  103.                
  104.         <div id="tools">
  105.      <div class="block">
  106.          
  107.          
  108.          
  109. <!--Titre Menu 3--><h2 class="rightcnr">Tribune libre</h2>
  110.          
  111.          
  112.          
  113.   <div class="block_ctn">
  114.                    
  115.          
  116.          
  117. <!--Debut Menu 3--><iframe src="http://www.i-tchat.com/10895" width="158" height="200" frameborder="0">
  118.             <a href="http://www.i-tchat.com" onclick="window.open('http://www.i-tchat.com/h-10895')">Voir la shoutbox</a>
  119. <!--Fin Menu 3--></iframe>
  120.                    
  121.                    
  122.                    
  123.  </div>
  124. </div>
  125.  <div class="block blk_mrg">
  126.          
  127.          
  128.          
  129. <!--Titre Menu 4--><h2 class="rightcnr">Liens</h2>
  130.                    
  131.                    
  132.                    
  133. <div class="block_ctn">
  134.                
  135.                
  136.                
  137. <!--Debut Menu 4--><center>
  138.   <br />
  139.   <a href="http://the301team.com" onclick="window.open(this.href); return false;"><img src="img/lien_clan_301.jpg" class="alpha2" border="0" title="Site de la [301]" alt="" /></a>
  140.   <br />
  141.   <a href="http://forum.hardware.fr" onclick="window.open(this.href); return false;"><img src="img/lien_forum_HFR.bmp" class="alpha2" border="0" title="Forum hardware.fr" alt="" /></a>
  142.   <br />
  143.   <br />
  144. <!--Fin Menu 4--></center>
  145.             
  146.          
  147.          
  148.      </div>
  149.  </div>
  150. </div>
  151.    <div id="content">
  152.      <div class="block">
  153.          
  154.          
  155.          
  156.          
  157.          
  158. <!--Titre Menu 2--><h2>Multy Mygames</h2>
  159.          
  160.          
  161.          
  162.   <div class="block_ctn">
  163.       
  164.       
  165.       
  166. <!--Debut News 1--><center>
  167.             <p>
  168.   <br /><font color="#9966FF"><i>Derni&egrave;re mise &agrave; jour</i>
  169.   <br />[27/01/07]</font>
  170.   <br />
  171.   <br />
  172.             <br />Bienvenue sur mon site !
  173.   <br />Vous pourrez trouver sur mon site diverses choses concernant ma team, il y a aussi une section sur diff&eacute;rents jeux PC et pour finir il y a des fonds d'&eacute;crans &agrave; t&eacute;l&eacute;charger. Je vous souhaite une bonne visite.
  174.      <br />
  175.   <br />
  176.   <br />
  177.   <br />
  178.   <br />
  179.   <br />
  180.   <br />
  181.   <br />
  182.   <br />
  183.   <br />
  184.   <br />
  185.   <br />
  186.             <br />
  187.             </p>
  188. <object type='application/x-shockwave-flash' data='miniplayer_v12.swf' width='0' height='0'>
  189. <param name='movie' value='<?=  ?>player.swf' />
  190. <param name='FlashVars' value='mp3=musique/PR_Intro2.mp3
  191. &amp;timecodecolor=x1594EE&amp;outterborder=x555555&amp;songtitlecolor=x1594EE
  192. &amp;loadingcolor=#FFFFFF&amp;background=xEEEEEE&amp;autoplay=true&amp;autoload=true&amp' />
  193.     </object>
  194. <!--Fin NEws 1--></center>
  195.          
  196.          
  197.          
  198.  </div>
  199. </div>
  200.                    
  201.          
  202. <!--Debut Waitbox-->
  203. <script type="text/javascript">
  204. setTimeout("ap_showWaitMessage('waitDiv', 0);",800)
  205. </script>
  206. <!--Fin Waitbox-->
  207.  </div>
  208. </div>
  209. </body>
  210. </html>


 
CSS1

Code :
  1. /*Definition des elements principaux*/
  2. * {margin:0; padding:0;}
  3. body {background:#FFFFFF; font-family:Verdana; font-size:0.7em;}
  4. #container {width:750px; margin:0 auto;}
  5. #header {width:641px; height:101px; position:relative; margin:0 auto 10px auto;}
  6. #header h1 {color:#ccc; font-family:bold "Times New Roman", Times, serif;}
  7. #header span.img {width:100%; height:100%; position:absolute; top:0; left:0; background: url(../img/header.png) no-repeat left top;}
  8. #navigation {width:160px; float:left; margin-right:10px;}
  9. #tools { width:160px; float:right; margin-left:10px;}
  10.   /*Definitions des blocks*/
  11. div.block h2, div.block h2.leftcnr, div.block h2.rightcnr {background:url(../img/blk_hd_bkg.png) repeat-x left top; border:1px solid #A097B0; color:#9966FF; font-size:12px; text-align:center; height:20px; line-height:20px; vertical-align:middle;  }
  12. div.block h2.leftcnr {background: url(../img/blk_hd_bkg_leftcnr.png) repeat-x left top; border-width:0 1px 0 0; height:22px; line-height:22px;}
  13. div.block h2.rightcnr {background: url(../img/blk_hd_bkg_rightcnr.png) repeat-x right top; border-width:0 0 0 1px; height:22px; line-height:22px;}
  14. div.block div.block_ctn {background:url(../img/blk_bkg.gif) left top; border:1px solid #DADADA}
  15. div.blk_mrg {margin-top:15px;}
  16. a:link { color:#777777; text-decoration:none; font-weight:normal; }
  17.     a:link{text-decoration:none;color:#777777;}
  18.     a:visited{text-decoration:none;color:#777777;}
  19.     a:hover{text-decoration:overline underline;color:#cacaca;}
  20. body {
  21.   background-color:#FFF;
  22.   color:#777777;
  23.   font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
  24.   margin:0;
  25.   padding:0;
  26. }
  27. .waitbox
  28. {
  29.    font-weight: bold;
  30.    font-size: 10px;
  31.    background-color: #e9e9e9;
  32.    cursor: pointer;
  33.    font-family: Verdana, Arial, Helvetica, sans-serif;
  34.    border: 1px solid #262C25;
  35.    margin-top: -70px;
  36.    margin-left: 313px;
  37.    position: absolute;
  38.    text-align: center;
  39.    }
  40.  
  41. #maframe {height:175px; overflow:auto;}
  42. #maframe2 {height:248px; overflow:auto;}
  43. #maframe3 {height:267px; overflow:auto;}
  44. #maframe4 {height:215px; overflow:auto;}


 
CSS2

Code :
  1. /*Definition des elements principaux*/
  2. * {margin:0; padding:0;}
  3. body {background:#FFFFFF; font-family:Verdana; font-size:0.7em;}
  4. #content {margin:0;  display:table-cell; _display:inline-block; }
  5. .alpha {
  6.   -moz-opacity:0.6; /*Firefox*/
  7.   filter:alpha(opacity=60); /*Internet Explorer*/
  8.   opacity:0.6; /*Safari, Opera 8.5  et autres (s'ils gèrent)*/
  9.   }
  10.  
  11. .alpha:hover {
  12.   -moz-opacity:1; /*Firefox*/
  13.   filter:alpha(opacity=100); /*Internet Explorer*/
  14.   opacity:1; /*Safari, Opera 8.5  et autres (s'ils gèrent)*/
  15.   }
  16.  
  17. .alpha2 {
  18.   -moz-opacity:0.4; /*Firefox*/
  19.   filter:alpha(opacity=40); /*Internet Explorer*/
  20.   opacity:0.4; /*Safari, Opera 8.5  et autres (s'ils gèrent)*/
  21.   }
  22.  
  23. .alpha2:hover {
  24.   -moz-opacity:1; /*Firefox*/
  25.   filter:alpha(opacity=100); /*Internet Explorer*/
  26.   opacity:1; /*Safari, Opera 8.5  et autres (s'ils gèrent)*/
  27.   }
  28.  
  29. .alpha3 {
  30.   -moz-opacity:0.4; /*Firefox*/
  31.   filter:alpha(opacity=40); /*Internet Explorer*/
  32.   opacity:0.4; /*Safari, Opera 8.5  et autres (s'ils gèrent)*/
  33.   }

n°1509486
omega2
Posté le 01-02-2007 à 11:12:13  profilanswer
 

C'est normal les 2 "<br />" mis d'affilé aprés chaque élément des menus et les 13 "<br />" de la nouvelle?
Si tu veux laisser un gros espace entre plusieurs éléments, tu peux le faire grace aux marges et espacements indiqué dans les css.

n°1510373
lyneus
Posté le 03-02-2007 à 10:46:56  profilanswer
 

Euh ba c'est pas que je veux laisser un gros espace entre les éléments mais j'aimerais que celà face exactement pareil que sur firefox ou presque pareil parce que là ça fait vraiment moche sur IE.

n°1511259
pierce3
Posté le 06-02-2007 à 10:12:24  profilanswer
 

Le problème, si j'ai bien compris, c'est que FX et IE ne lisent pas les padding et les margin à l'identique, le plus simple serait que tu utilise les conditions CSS (ou instructions condidionnelles comme tu veux) dans ton entète d'appel de feulles de style et que tu crée deux feuilles de style : l'une pour IE et une autre pour FX, tiens voila un lien qui explique bien mieux les conditions et les problèmes de css entre les deux navigateurs.
 
 
http://www.siteduzero.com/tuto-3-2 [...] et-ff.html


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Firefox OK, Internet Explorer Problème

 

Sujets relatifs
probleme code php readdir():Tween - probleme et optimisation
Js compatibilite IE / firefoxProbleme avec Api Setjob
Problème de compilation[JS] Problème de DIV
Export Excel > Html = probleme !!!Problème utilisation phpPgAdmin
Photos s'affichent dans firefox, mais pas dans IEProblème: se déplacer dans un fichier
Plus de sujets relatifs à : Firefox OK, Internet Explorer Problème


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR