-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
53 lines (36 loc) · 978 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "::-webkit-file-upload-button"
slug: Web/CSS/::file-selector-button
---
{{CSSRef}}{{Non-standard_header}}
Le pseudo-élément **`::-webkit-file-upload-button`** représente le bouton d'un élément {{HTMLElement("input")}} de type `file`.
Ce pseudo-élément n'est pas standard et est uniquement pris en charge par les navigateurs basés sur WebKit/Blink.
## Syntaxe
```css
selecteur::-webkit-file-upload-button
```
## Exemples
### CSS
```css
input,
label {
display: block;
}
input[type="file"]::-webkit-file-upload-button {
border: 1px solid grey;
background: #fffaaa;
}
```
### HTML
```html
<form>
<label for="fileUpload">Uploader un fichier</label><br />
<input type="file" id="fileUpload" />
</form>
```
### Résultat
{{EmbedLiveSample('Exemples')}}
## Spécifications
Ce pseudo-élément est un pseudo-élément propriétaire lié à WebKit/Blink et ne fait partie d'aucune spécification.
## Compatibilité des navigateurs
{{Compat}}