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 :

décalage ie et firefox


Sujet :

HTML

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éprouvé
    Profil pro
    Inscrit en
    Juin 2005
    Messages
    135
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2005
    Messages : 135
    Par défaut décalage ie et firefox
    salut à tous.

    voila j'ai un formulaire, tout marche bien sous ie mais sous firefox rien ne vas plus.

    en fait le problement, c'est qu'il ne respecte pas les tailles des composants que j'ai défini ( le mechant)...résultat, rien n'est aligner sur ma page et tout est vraiment moche!

    voila mon code :
    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
    <table cellSpacing="0" cellPadding="0" width="437" border="0">
    						<tr>
    							<td class="txt" align="left" width="30" height="15">&nbsp;</td>
    							<td class="txt" align="left" width="200" height="15"><asp:label class="txt" id="m_lblCiv" runat="server"></asp:label>*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:dropdownlist id="m_cmbCiv" runat="server" width="33%"></asp:dropdownlist></td>
    						</tr>
    						<tr>
    							<td class="txtCopy" align="left" width="30" height="15"><span class="txt"><br>
    								</span></td>
    							<td class="txtCopy" align="left" width="200"><asp:label class="txt" id="m_lblName" runat="server"></asp:label>*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:textbox class="txt" id="m_txtName" runat="server" width="100%" onKeydown="this.style.backgroundColor='white'"></asp:textbox></td>
    						</tr>
    						<tr>
    							<td class="txt" align="left" width="30" height="15">&nbsp;</td>
    							<td class="txt" align="left" width="200" height="15"><asp:label class="txt" id="m_lblFirst" runat="server"></asp:label>*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:textbox class="txt" id="m_txtFirstName" runat="server" width="100%" onKeydown="this.style.backgroundColor='white'"></asp:textbox></td>
    						</tr>
    						<tr>
    							<td class="txt" align="left" width="30" height="15">&nbsp;</td>
    							<td class="txt" align="left" width="200" height="15"><asp:label class="txt" id="m_lblSexe" runat="server"></asp:label>*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:dropdownlist id="m_cmbSexe" runat="server" width="66%"></asp:dropdownlist></td>
    						</tr>
    						<tr>
    							<td class="txt" align="left" width="30" height="15">&nbsp;</td>
    							<td class="txt" align="left" width="200" height="15"><asp:label class="txt" id="m_lbDateOfBirth" runat="server"></asp:label>*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:dropdownlist id="m_cmbDay" runat="server" width="33%"></asp:dropdownlist><asp:dropdownlist id="m_cmbMonth" runat="server" width="33%"></asp:dropdownlist><asp:dropdownlist id="m_cmbYear" runat="server" width="33%"></asp:dropdownlist></td>
    						</tr>
    						<tr>
    							<td class="txt" align="left" width="30" height="15">&nbsp;</td>
    							<td align="left" width="200" height="15"><asp:label class="txt" id="m_lblCountry" runat="server"></asp:label>*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:dropdownlist id="m_cmbCountry" runat="server" width="100%"></asp:dropdownlist></td>
    						</tr>
    						<tr>
    							<td class="txt" align="left" width="30" height="15">&nbsp;</td>
    							<td class="txt" align="left" width="200" height="15"><asp:label class="txt" id="m_lblMail" runat="server"></asp:label>¹ 
    								*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:textbox class="txt" id="m_txtMail" runat="server" width="100%" onKeydown="this.style.backgroundColor='white'"></asp:textbox></td>
    						</tr>
     
    						<tr>
    							<td class="txt" align="left" width="30" height="15">&nbsp;</td>
    							<td class="txt" align="left" width="200" height="15"><asp:label class="txt" id="m_lblPwd" runat="server"></asp:label>*</td>
    							<td height="15"><IMG src="/_images/px.gif" width="5"></td>
    							<td width="170" colSpan="2" height="15"><asp:textbox id="m_txtPwd" runat="server" TextMode="Password" width="100%" onKeydown="this.style.backgroundColor='white'"></asp:textbox></td>
    						</tr>
     
     
    					</table>

  2. #2
    Membre Expert Avatar de Oluha
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    2 183
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 183
    Par défaut
    au lieu de mettre width et height directement dans la balise, passe par le style

    PS : n'oublie pas de supprimer ton double post

  3. #3
    Candidat au Club
    Inscrit en
    Juin 2005
    Messages
    3
    Détails du profil
    Informations forums :
    Inscription : Juin 2005
    Messages : 3
    Par défaut
    est-ce que l'evenement onKeydown fonctionne sous Firefox ?

  4. #4
    Membre chevronné

    Inscrit en
    Octobre 2004
    Messages
    363
    Détails du profil
    Informations forums :
    Inscription : Octobre 2004
    Messages : 363
    Par défaut
    onKeyDown est un évènement javascript, normallement il doit fonctionner aussi bien sous IE que sous FF.

Discussions similaires

  1. Décalage que sur Firefox
    Par Antoon dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 06/01/2009, 23h54
  2. [Aide] Décalage sous Mozilla Firefox
    Par PiouPiou83 dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 10/06/2008, 18h22
  3. Décalage et background firefox/ie
    Par cybercodes dans le forum Mise en page CSS
    Réponses: 12
    Dernier message: 31/12/2006, 03h00
  4. décalage ie et firefox
    Par dude666 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 12/08/2005, 19h39

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