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

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Problème de lien sous IE8

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Problème de lien sous IE8

n°2087394
lola690
Posté le 06-07-2011 à 09:46:04  profilanswer
 

Bonjour,
 
Je souhaite créer un bouton "submit" qui ouvre la page "error.html" mais mon code actuel qui marche sous Firefox et Chrome, ne marche pas sous Internet explorer 8 : la page "error.html" ne s'ouvre pas.
Est-ce que vous auriez une petite idée ? Merci d'avance...
 
Mon code :
 
HTML :
<a href="error.html" target="_self"><input class="bouton" type="button" value="Envoyer"/></a>
 
CSS :
.bouton{
 background-image:url(../images/submit.png);
 text-indent:-9999px;
 width:85px;
 height:15px;
 margin-top:10px;
 margin-left:0px;
}
 
.bouton:link{
 
 background-position:0 0;
 }  
 
.bouton:visited {
 background-position:0 0;
 }
 
.bouton:active {
 background-position:0 0;
 }
 
 
.bouton:hover {
 background-position:0 0;
 height:15px;
 width:85px;
 margin-top:0px;
 margin-left:0px;
 background-image:url(../images/submit2.png);
 }

mood
Publicité
Posté le 06-07-2011 à 09:46:04  profilanswer
 

n°2088183
hpl76
Fucked with a Knife !
Posté le 08-07-2011 à 12:26:02  profilanswer
 

Bonjour,  
 
Pourquoi tu ne passes pas par un form classique ? Les "objets" du type input sont faits pour cela...
 
et rien ne t'empêche de placer ensuite ton image en tant qu'élément input.
 
hpl76


Message édité par hpl76 le 08-07-2011 à 12:26:32

---------------
T'as pas de couilles au cul et quand tu en as c'est pas les tiennes :)
n°2088980
lola690
Posté le 12-07-2011 à 15:39:20  profilanswer
 

Bonjour,
 
Merci pour votre réponse.
J'avais bien mis mon code HTML dans un form... J'ai essayé d'enlever l'élément input mais sans succès  
(mon text-indent:-9999px; ne fonctionne pas et si j'enlève le texte, le bouton disparaît).
J'ai essayé de mettre mon bouton en dehors du form mais j'ai le même problème.
Bref, je sèche complètement...
 
 
code HTML:
 
   <div id="login">
   <form action="http://tonForum.qqch/page_d_identification.php" method="post">
   <form method="post" action="traitement.php">  
   
    <table cellpadding="1" cellspacing="50" >
    <tr><td style="width:80px;">Login </td><td><input type="text" name="login" style="width:200px;" /></td></tr>
    <tr><td style="width:80px;">Password </td><td><input type="password" name="pass"  style="width:200px;"/></td></tr>
    <tr><td>&nbsp;&nbsp;</td><td>&nbsp;&nbsp;<a class="bouton" href="error.html">enregistr</a>&nbsp;&nbsp;&nbsp;&nbsp;<input class="bouton2" type="reset" name="reset" value="Reset"/></td></tr>  
    </table>
   </form>  
   </div>
 
 
 
code CSS:
 
.bouton{
 position:relative;
 background-image:url(../images/submit.png);
 background-repeat: no-repeat;
 text-indent:-9999px;
 width:85px;
 height:15px;
 margin-top:10px;
 margin-left:0px;
   
}
 
.bouton:link{
 
 background-position:0 0;
 }  
 
.bouton:visited {
 background-position:0 0;
 }
 
.bouton:active {
 background-position:0 0;
 }
 
 
.bouton:hover {
 height:15px;
 width:85px;
 margin-top:10px;
 margin-left:0px;
 background-image:url(../images/submit2.png);
 }
 
 
 
 
.bouton2{
 background-image:url(../images/reset.png);
 text-indent:-9999px;
 width:85px;
 height:15px;
 margin-top:10px;
 margin-left:0px;
}
 
.bouton2:link{
 
 background-position:0 0;
 }  
 
.bouton2:visited {
 background-position:0 0;
 }
 
.bouton2:active {
 background-position:0 0;
 }
 
 
.bouton2:hover {
 width:85px;
 height:15px;
 margin-top:10px;
 margin-left:0px;
 background-image:url(../images/reset2.png);
 }

n°2089480
aideinfo
Posté le 14-07-2011 à 19:46:27  profilanswer
 

Un lien sur un bouton, c'est vraiment n'importe quoi. Ca ne se fait pas. Tu ajoutes simplement à ton bouton ceci  :  

Code :
  1. <input type="button" onclick="location.href='error.html';" />


---------------
http://www.aideinfo.com/  Whois adresses IP/domaines le plus évolué !!  FAQ Free Mobile

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

  Problème de lien sous IE8

 

Sujets relatifs
Problème avec tables SQL et TIMESTAMP ![resolu] probleme avec un if
[PHP/MYSQL] Lien http pour modifier les données d'une base Mysql[AS2] problême HitTest
problème communication audio PC/MACProbleme Iframe et object.
Problème de chargement application facebook !Oracle 11g R2 est fou ? Problème avec OR
GridBagLayout problème affichage conditonnelprobleme excel vba somme
Plus de sujets relatifs à : Problème de lien sous IE8


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