Je souhaite supprimer la flèche du menu déroulant d'un fichier HTML <select>
élément. Par exemple :
<select style="width:30px;-webkit-appearance: none;">
<option>2000</option>
<option>2001</option>
<option>2002</option>
...
</select>
Comment faire avec Opera, Firefox et Internet Explorer ?
1 votes
Quelques réponses/hacks pour le cacher dans Firefox - stackoverflow.com/questions/5912791/
4 votes
apparence
#slectType { -webkit-appearance: none; appearance: none /*menulist*/
!important; max-width: 300px; line-height: 0px;} input[type='text'], select {max-height: 30px;max-width: 300px; text-align-last: center; /*text-indent: 5px;*/} button:hover {color: #FFF;background-color: #566977;box-shadow:none;border-color: #759AB5;} #errorMSG{z-index: 2147483647;}
Navigateurs [CH:-webkit, FF:-moz, IE:-ms, Oprea:-o] ;1 votes
Duplicata possible de Supprimer la flèche de sélection sur IE
0 votes
Duplicata possible de HTML cacher la flèche déroulante Select avec css
1 votes
Pour ceux qui utilisent Tailwind, ajoutez cette classe :
appearance-none