Non standard
Cette fonctionnalité n'est ni standard, ni en voie de standardisation. Ne l'utilisez pas pour des sites accessibles sur le Web : elle ne fonctionnera pas pour tout utilisateur. Il peut également y avoir d'importantes incompatibilités entre les implémentations et son comportement peut être modifié dans le futur.
Le pseudo-élément ::-ms-browse
représente le bouton qui permet d'ouvrir l'explorateur de fichier d'un élément <input>
de type file
.
Propriétés autorisées
Seules les propriétés CSS suivantes peuvent être utilisées avec une règle qui utilise un sélecteur avec ::-ms-browse
. Les autres propriétés sont ignorées.
-ms-background-position-x
-ms-background-position-y
-ms-high-contrast-adjust
background-clip
background-color
background-image
background-origin
background-repeat
background-size
border-bottom-color
border-bottom-left-radius
border-bottom-right-radius
border-bottom-style
border-bottom-width
border-left-color
border-left-style
border-left-width
border-right-color
border-right-style
border-right-width
border-top-color
border-top-left-radius
border-top-right-radius
border-top-style
border-top-width
box-shadow
box-sizing
color
cursor
display
(valeurssblock
,inline-block
etnone
)@font-face
font-size
font-style
font-weight
height
margin-bottom
margin-left
margin-right
margin-top
opacity
outline-color
outline-style
outline-width
padding-bottom
padding-left
padding-right
padding-top
transform
transform-origin
visibility
width
Syntaxe
::-ms-browse
Exemples
HTML
<label>Choisir une image : <input type="file"></label>
CSS
input[type="file"]::-ms-browse {
color: red;
background-color: yellow;
}
Résultat
Capture d'écran correspondante
Spécifications
Ce pseudo-élément est un pseudo-élément propriétaire lié à Trident/Microsoft et ne fait partie d'aucune spécification.
Compatibilité des navigateurs
No compatibility data found. Please contribute data for "css.selectors.-ms-browse" (depth: 1) to the MDN compatibility data repository.