mdn/content

File selector can be styled

開放

#36,090 建立於 2024年9月28日

 (1 則留言) (1 個反應) (0 位負責人)Markdown (23,229 個分叉)batch import
Content:Learn:Formshelp wanted

倉庫指標

星標
 (10,950 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/Forms/Advanced_form_styling

What specific section or headline is this issue about?

File input types

What information was incorrect, unhelpful, or incomplete?

"The only problem with file pickers is that the button provided that you press to open the file picker is completely unstylable — it can't be sized or colored, and it won't even accept a different font."

What did you expect to see?

It is true that the button is unstylable -but there is a pseudoelement, ::file-selector-button, that lets us style it.

Do you have any supporting links, references, or citations?

https://developer.mozilla.org/en-US/docs/Web/CSS/::file-selector-button

Do you have anything more you want to share?

No response

MDN metadata

貢獻者指南