2
You can style the file selector button of file upload elements.
source link: https://www.matuzo.at/til/til49/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
You can style the file selector button of file upload elements.
<label for="upload">Select file</label><br>
<input type="file" id="upload">
[type="file"]::file-selector-button {
background-color: hotpink;
padding: 0.5rem 1rem;
border: 2px solid fuchsia;
margin-block-end: 1rem;
display: block;
border-radius: 3px;
}
[type="file"]::file-selector-button:hover {
background-color: aqua;
}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK