Html输入文件默认按钮(选择文件)颜色变化..? [英] Html input file default button(choose file) color change..?

查看:93
本文介绍了Html输入文件默认按钮(选择文件)颜色变化..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,





我在这个场景中挣扎,实际上我们在所有页面都使用了输入文件。现在我需要改变那里的一点点变化我需要改变像黄色的按钮颜色。请你告诉我有谁知道怎么做



hi friends,


i struggled this scenorio actually we have used input file in all the page right . now i need to change little bit changes over there i need to change the button color like yellow. will you please tell me anyone knows how to do this

<pre>  <input class="fileupload" id="fileInput" type="file" file-model="myFile" />





这里我试过..如何更改默认按钮颜色



我尝试过:





here i have tried..how to change the default button color

What I have tried:

<input class="fileupload" id="fileInput" type="file" file-model="myFile"/>

推荐答案

你刚遇到一个严重的老问题...

浏览器不是当type ='file'时,在输入元素上处理好(或者根本)样式规则...不幸的是你没有太多选择,但是选择第三方解决方案或者自己努力工作......

关于此的教程:

CSS2 / DOM - 样式输入类型=文件 [ ^ ]
You just hit a old and serious problem...
Browser are not handle well (or at all) style rules on the input element when type='file'... And unfortunately you have not much options, but pick a 3rd party solution or work hard on your own...
A tutorial about this:
CSS2/DOM - Styling an input type="file"[^]


这篇关于Html输入文件默认按钮(选择文件)颜色变化..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆