开发者

Is it possible to change the style of the "Browse" button in the file upload html control?

开发者 https://www.devze.com 2022-12-14 11:43 出处:网络
I\'ve been looking all over Google for an easy, clea开发者_如何学编程n way to change the style of the Browse button of the HTML <input type=file> control, but all solutions I\'ve found so far in

I've been looking all over Google for an easy, clea开发者_如何学编程n way to change the style of the Browse button of the HTML <input type=file> control, but all solutions I've found so far involve hidden controls, absolute positioning of images, jQuery plugins etc. Is there a way to accomplish this using CSS2 that I've missed?


Sorry, this is completely browser-dependant.

Take a look at the question How to rename HTML browse button, the same reasons apply.


I have not seen this getting done in pure css (if anyone knows let me know). Well here is something that you might find interesting:

http://www.dreamincode.net/forums/showtopic15621.htm

Mostly used CSS, little bit of javascript too.


No, you didn't miss anything. Its not possible doing this only with CSS.

0

精彩评论

暂无评论...
验证码 换一张
取 消