A voir également:
- Taille des cellulles d'un menu déroulant
- Menu déroulant excel - Guide
- Comment réduire la taille d'un fichier - Guide
- Excel menu déroulant en cascade - Guide
- Reduire taille image - Guide
- Afficher taille dossier windows - Guide
2 réponses
salut,
As-tu essayé de mettre un attribut style="width:200px" sur tous les
select ?
Sinon ton code n'est pas valide. Mets au moins des " autour de tous les
attributs de tes balises html.
A+, crabs
As-tu essayé de mettre un attribut style="width:200px" sur tous les
select ?
Sinon ton code n'est pas valide. Mets au moins des " autour de tous les
attributs de tes balises html.
A+, crabs
Salut crabs,
Désolé mais je suis novice en informatique. J'ai un ordinateur qui utilise windows xp et je veux faire un website associatif en html dans lequel j'ai mis des menus déroulant en java script seulement la longueur des cellules n'est pas la même partout et j'aimerais que celle-ci aient la même longueur pour des questions d'esthétique.
Entre "head" et "/head" j'ai mis ceci :
<SCRIPT language=JavaScript>
<!-- Hide the script from old browsers --
function surfto(form)
{var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0")
{window.open(form.select1.options[myindex].value, target="frame2");}
}
//-->
</SCRIPT>
Et en dessous j'ai mis ça :
<FORM name=afrique>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- AFRIQUE -</OPTION>
<option value=angola.html>Angola</option>
<option value=comores.html>Comores</option>
<option value=congo.html>Congo</option>
</p>
</form>
<FORM name=amérique>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- AMERIQUE -</OPTION>
<option value=bresil.html>Brésil</option>
<option value=canada.html>Canada</option>
<option value=mexique.html>Mexique</option>
</select>
</p>
</form>
<FORM name=asie>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- ASIE -</OPTION>
<option value=birmanie.html>BIRMANIE</option>
<option value=cambodge.html>CAMBODGE</option>
<option value=chine.html>CHINE</option>
</select>
</p>
</form>
<FORM name=europe>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- EUROPE -</OPTION>
<option value=allemagne.html>Allemagne</option>
<option value=angleterre.html>Angleterre</option>
<option autriche.html>Autriche</option>
<option value=belgique.html>Belgique</option>
</select>
</p>
</form>
Tout fonctionne bien mais la taille des cellules diffère, est-il possible de faire en sorte quelles soient toute égales? Merci encore.
Désolé mais je suis novice en informatique. J'ai un ordinateur qui utilise windows xp et je veux faire un website associatif en html dans lequel j'ai mis des menus déroulant en java script seulement la longueur des cellules n'est pas la même partout et j'aimerais que celle-ci aient la même longueur pour des questions d'esthétique.
Entre "head" et "/head" j'ai mis ceci :
<SCRIPT language=JavaScript>
<!-- Hide the script from old browsers --
function surfto(form)
{var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0")
{window.open(form.select1.options[myindex].value, target="frame2");}
}
//-->
</SCRIPT>
Et en dessous j'ai mis ça :
<FORM name=afrique>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- AFRIQUE -</OPTION>
<option value=angola.html>Angola</option>
<option value=comores.html>Comores</option>
<option value=congo.html>Congo</option>
</p>
</form>
<FORM name=amérique>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- AMERIQUE -</OPTION>
<option value=bresil.html>Brésil</option>
<option value=canada.html>Canada</option>
<option value=mexique.html>Mexique</option>
</select>
</p>
</form>
<FORM name=asie>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- ASIE -</OPTION>
<option value=birmanie.html>BIRMANIE</option>
<option value=cambodge.html>CAMBODGE</option>
<option value=chine.html>CHINE</option>
</select>
</p>
</form>
<FORM name=europe>
<p align="left">
<SELECT style="BACKGROUND-COLOR: #9f7d55; COLOR: #ffff00;font-family: Verdana; font-size: 12;font-weight: bold;" onchange=surfto(this.form) size=1 name=select1>
<OPTION value=0 selected>- EUROPE -</OPTION>
<option value=allemagne.html>Allemagne</option>
<option value=angleterre.html>Angleterre</option>
<option autriche.html>Autriche</option>
<option value=belgique.html>Belgique</option>
</select>
</p>
</form>
Tout fonctionne bien mais la taille des cellules diffère, est-il possible de faire en sorte quelles soient toute égales? Merci encore.