firefox / internet (toutes versions) - Programmation
TomsGuide.com : 700 000 inscrits répondent à toutes vos questions high-tech et informatique.
Pour obtenir de l'aide, inscrivez-vous gratuitement !
 




Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : firefox / internet (toutes versions)
 
BEDJ!! I have the skill!
Profil : IDNaute
Plus d'informations

Bonjours a tous, je crée présentement mon site, mais je remarque que mon site est pas pareille quand je le rouvre avec Firefox et internet explorer (je sais que internet explorer ne suis pas les norme et quil es tout croche). Mais sachant que j'utilise dreamweaver cs3 est ce quil peut adapter les code pour internet explorer et firefox a la fois.

Ex: problème avec les table qui sont a l'intérieur dun div sous firefox
et aussi avec les center sous firefox

merci de votre aide


---------------
BEDJ
La grande différence entre l’amour et l’amitié, c’est qu’il ne peut y avoir d’amitié sans réciprocité.
Liens sponsorisés


Inscrivez-vous ou connectez-vous pour masquer ceci.

Après le canard boiteux
Profil : IDNaute
Plus d'informations

Peux-tu être plus précis dans ta demande stp.


---------------
http://www.quentin-theuret.net
BEDJ!! I have the skill!
Profil : IDNaute
Plus d'informations

jaimerais que dreamweaver convertisse les balise a la foit pour firefox et internet explorer.
Ex: firefox reconnait pas la balise <center>

Mes ses quoi pour mettre les objets au milieu avec firefox?

Ou quelqun pourait til me dire cest quoi les balise qui fontionne pas sur firefox.


---------------
BEDJ
La grande différence entre l’amour et l’amitié, c’est qu’il ne peut y avoir d’amitié sans réciprocité.
La vie serait + simple si j'avais le code source.
Profil : IDNaute
Plus d'informations

La liste des balises qui fonctionne sur chaque navigateur je ne l'ai pas de tête mais tu peux te limiter aux balises que donnent le W3C.

Sinon pour centrer tes éléments utilise des CSS : par exemple pour un bloc div :

Code :
  1. div{
  2.     align:center;
  3. }


Profil : Extensionaute
Plus d'informations

div{
align:center;
}

 

:| C'est moche ! Et ça marchera pas !

 

div { margin-left: auto; margin-right: auto; text-align: center; }


Message édité par OmaR le 12-09-2007 à 15:00:29

---------------
/!\ Le vaincrez-vous ?! /!\
BEDJ!! I have the skill!
Profil : IDNaute
Plus d'informations

quand je parlai de div et de table cetait pas pour les centrer (sa cetait pour la balise center qui marche pas sur firefox)

pour le div et les table: jai fait un tableau qui est dans un div
le div est aligner sur la droite avec un bar de scroll car le contenu est trop long (tout est correcte jusque la) mais jai mit une largeur de 300px et firefox me la met plein page (de gauche a droite) et je peut pu rien cliquer car le div est par dessus.


---------------
BEDJ
La grande différence entre l’amour et l’amitié, c’est qu’il ne peut y avoir d’amitié sans réciprocité.
Profil : Extensionaute
Plus d'informations

La balise center fonctionne sous firefox. Faut bien l'utiliser.

Avec du code, on pourrait t'aider.


---------------
/!\ Le vaincrez-vous ?! /!\
BEDJ!! I have the skill!
Profil : IDNaute
Plus d'informations

Voici se que me donne firefoxhttp://img205.imageshack.us/img205/5564/sanstitrefb2.png
et
voici ce que me donne internet explorer http://img205.imageshack.us/img205/9033/sanstitre1gr0.png
(cest rare mes ses vrai) je voudrait que dans firefox mon site s'affiche comme dans internet explorer

 

et voici le code de ma page

 
Code :
  1. <?
  2. session_start();
  3. include('user_verif.php');
  4. user_verif("1", "user_login.php?action=login" );
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>Bedj</title>
  11. <script type="text/javascript" src="swfobject.js"></script>
  12. <link href="css/tableau.css" rel="stylesheet" type="text/css">
  13. <link href="css/style.css" rel="stylesheet" type="text/css" />
  14. <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  15. <style type="text/css">
  16.    
  17.     #centre
  18.         {
  19.     border: 1px solid #ffffff;
  20.     cellpadding:0;
  21.     cellspacing:0;
  22.     position:absolute;
  23.     height:180px;
  24.     top:0px;
  25.     right:0px;
  26.                         }
  27.   #div
  28.         {
  29.     position:absolute;
  30.     top:0px;
  31.     left:0px;
  32.     height: 180px;
  33.     width:100%;
  34.           }
  35. </style>
  36. </head>
  37. <body>
  38. <table width="100%" height="180" id="div" cellpadding="3" cellspacing="3" name="div">
  39.   <tr>
  40. <td width="23%">
  41. <table width="20%" height="180">
  42.   <tr>
  43.     <td><div id="player2">
  44.       <script type="text/javascript">
  45. AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','240','height','135','title','player','src','mp3player','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','mp3player' ); //end AC code
  46. </script>
  47.       <noscript>
  48.         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="240" height="135" title="player">
  49.           <param name="movie" value="mp3player.swf" />
  50.           <param name="quality" value="high" />
  51.           <embed src="mp3player.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="240" height="135"></embed>
  52.         </object>
  53.         </noscript>
  54.     </div>
  55.         <script type="text/javascript">
  56.     var s2 = new SWFObject("mp3player.swf", "playlist", "240", "135", "7" );
  57.     s2.addVariable("file","playlist.xml" );
  58.     s2.addVariable("backcolor","0x00000" );
  59.     s2.addVariable("frontcolor","0x0099FF" );
  60.     s2.addVariable("lightcolor","0x0000FF" );
  61.     s2.addVariable("displayheight","0" );
  62.     s2.write("player2" );
  63.   </script></td>
  64.   </tr>
  65. </table></td>
  66. <td width="52%">
  67. <table width="78%" height="180">
  68.   <tr>
  69.     <td width="20%"><table cellspacing="3" cellpadding="3">
  70.       <tr>
  71.         <td><center>
  72.           <a href="index.php" target="_top"><img src="images/index.gif" border="none" align="absmiddle" width="20" height="20" /></a>
  73.         </center></td>
  74.       </tr>
  75.       <tr>
  76.         <td><center>
  77.           <a href="index.php" target="_top">Index</a>
  78.         </center></td>
  79.       </tr>
  80.       <tr>
  81.         <td><center>
  82.           <a href="mainframe.php" target="mainFrame"><img src="images/accueil.gif" border="none" align="absmiddle" width="20" height="20" /></a>
  83.         </center></td>
  84.       </tr>
  85.       <tr>
  86.         <td><center>
  87.           <a href="mainframe.php" target="mainFrame">Accueil</a>
  88.         </center></td>
  89.       </tr>
  90.       <tr>
  91.         <td><center>
  92.           <a href="user_login.php?action=logout" target="_top"><img src="images/deconnexion.gif" alt="deconnexion" width="20" height="20" border="0" align="absmiddle" /></a>
  93.         </center></td>
  94.       </tr>
  95.       <tr>
  96.         <td><center>
  97.           <a href="user_login.php?action=logout" target="_top">D&eacute;connexion</a>
  98.         </center></td>
  99.       </tr>
  100.     </table></td>
  101.     <td width="68%"><center>
  102.     <img id="baniere">
  103. <script language="JavaScript">
  104. window.document.getElementById('baniere').src = 'images/bedjsite' + screen.width + '.jpg';
  105. </script>
  106.     </center></td>
  107.     <td width="12%"><table cellspacing="3" cellpadding="3">
  108.       <tr>
  109.         <td><center>
  110.           <a href="/o2php/index.php" target="mainFrame"><img src="images/forum.gif" border="none" align="absmiddle" width="20" height="20" /></a>
  111.         </center></td>
  112.       </tr>
  113.       <tr>
  114.         <td><center>
  115.           <a href="/o2php/index.php" target="mainFrame">Forum</a>
  116.         </center></td>
  117.       </tr>
  118.       <tr>
  119.         <td><center>
  120.           <a href="mailto:jonathanbedard.22@gmail.com" target="mainFrame"><img src="images/mail.gif" border="none" align="absmiddle" width="20" height="20" /></a>
  121.         </center></td>
  122.       </tr>
  123.       <tr>
  124.         <td><center>
  125.           <a href="mailto:jonathanbedard.22@gmail.com" target="mainFrame">&Eacute;mail</a>
  126.         </center></td>
  127.       </tr>
  128.       <tr>
  129.         <td><center>
  130.           <a href="/livre/index.php" target="mainFrame"><img src="images/livredor.gif" alt="livredor" width="20" height="20" border="0" align="absmiddle" /></a>
  131.         </center></td>
  132.       </tr>
  133.       <tr>
  134.         <td><center>
  135.           <a href="/livre/index.php" target="mainFrame">Sign&eacute;</a>
  136.         </center></td>
  137.       </tr>
  138.     </table></td>
  139.   </tr>
  140. </table></td>
  141. <td width="25%">
  142. <table width="100%" height="100%" id="centre" align="right">
  143. <tr>
  144. <td height="180">
  145. <div align="right" style="overflow:auto; height:180px; top:0px; right:0px;">
  146. <p><center><big><font color="orange">Mon compte</font></big></center></p><hr>
  147. <p align="center"> <font face="Arial" size="2"> Vous &ecirc;tes connect&eacute; sous: <a href="mailto: <?php user('email'); ?>">
  148.             <?php user('pseudo'); ?>
  149.             </a> en tant que<br> <b>
  150.               <?php user('rang'); ?>
  151.               </b> <br />
  152.             <br />
  153.             Il y a
  154.             <?php  stats('nb', '123');  ?>
  155.             membres sur le site. <br />
  156.             </font>
  157.                   <?php
  158. ?>
  159.                   <font face="Arial" size="2"> En voici la liste: <br />
  160.                   <br />
  161.                   <font color="green"><?php stats('ls', '123');  ?>                  </font></font> <br />
  162.                   <?php
  163. ?>
  164.                   <font face="Arial" size="2"> Il y a
  165.                     <?php  stats('nb', '3');  ?>
  166.                     <font face="Arial" size="2"> administrateurs et
  167.                     <?php  stats('nb', '2');  ?>
  168.                     <font face="Arial" size="2"> mod&eacute;rateurs sur le site.<br />
  169.                     <br />
  170.                     Les <b>administrateurs</b>: <br />
  171.                     <font color="red">
  172.                       <?php stats('ls', '3');  ?>                  </font> <br />
  173.                     <br />
  174.                     Les <b>mod&eacute;rateurs</b>: <br />
  175.                     <font color="orange">
  176.                       <?php stats('ls', '2');  ?></font>
  177.                       <br />
  178.                       <br />
  179.                       <?php $html='<a href="admin/index.php" target="_top">Administration</a>'; affiche($html, '3'); ?>
  180.                       <br />
  181.                       <?php $html='<a href="user_login.php?action=logout" target="_top">D&eacute;conexion</a>'; affiche($html, '123'); ?>
  182.                       <br />
  183. <?php $html='<a href="user_update.php?action=modif" target="_top">Editer votre profil</a>'; affiche($html, '123'); ?>  </p><br /></div></td>
  184. </tr>
  185. </table></td>
  186. </tr>
  187. </table>
  188. </body>
  189. </html>
 

Ma parti de droite dans firefox est completement a gauche et le table et la div font toute la page ainsi que le titre de mon tableau est aucentre au lieu detre a droite comme dans intenret explorer de maider a resoudre mon probleme.


Message édité par jonathanbedard22 le 13-09-2007 à 00:48:56

---------------
BEDJ
La grande différence entre l’amour et l’amitié, c’est qu’il ne peut y avoir d’amitié sans réciprocité.
Profil : Extensionaute
Plus d'informations

Ajoute un position : absolute; sur cette ligne :
<div align="right" style="overflow:auto; height:180px; top:0px; right:0px;">


---------------
/!\ Le vaincrez-vous ?! /!\
BEDJ!! I have the skill!
Profil : IDNaute
Plus d'informations

merci sa fonctionne tres bien mais la jai perdu mon contour

 

javais mit un contour alentour de ma table et il est disparu pourtant mon code est la

 
Code :
  1. #  #centre
  2. #        {
  3. #    border: 1px solid #ffffff;
  4. #    cellpadding:0;
  5. #    cellspacing:0;
  6. #    position:absolute;
  7. #    height:180px;
  8. #    top:0px;
  9. #    right:0px;
  10. #                          }
 

de plus mes lien ne fonctionne plus au haut de la page (ceux qui sont alentour de limage bedj)


Message édité par jonathanbedard22 le 13-09-2007 à 13:09:22

---------------
BEDJ
La grande différence entre l’amour et l’amitié, c’est qu’il ne peut y avoir d’amitié sans réciprocité.
BEDJ!! I have the skill!
Profil : IDNaute
Plus d'informations
n°114657
13-09-2007 à 22:34:43