No estándar
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Resumen
El pseudo-elemento CSS ::-ms-browse
representa el botón para abrir el selector de archivos de un <input>
con type="file"
.
Nota: No se pueden usar todas las propiedades con este pseudo-elemento. Hay una lista de propiedades permitidas en la documentación MSDN.
Ejemplo
Contenido HTML
<label>Select image: <input type="file"></label>
Contenido CSS
input[type="file"]::-ms-browse { color: red; background-color: yellow; }
Salida
Resultado del ejemplo
Especificaciones
No es parte de ninguna especificación pero Miscrosoft tiene una descripción de ::-ms-browse
en MSDN.
Compatibilidad con los distintos navegadores
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
Característica | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Soporte básico | Sin soporte | Sin soporte | 10 | Sin soporte | Sin soporte |
Característica | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Soporte básico | Sin soporte | Sin soporte | Sin soporte | Sin soporte | Sin soporte | Sin soporte |