如何设置< input type ="文件/>的样式用CSS标记 [英] How To Style The <input type="file /> Tag With CSS

查看:89
本文介绍了如何设置< input type ="文件/>的样式用CSS标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当浏览器遇到

When the browser encounters

展开 | 选择 | Wrap | 行号

推荐答案

$ b浏览器遇到时$ b ..


< input type = file>
然后在浏览器窗口中出现一个按钮旁边的文本框。 />

现在我想要做什么...

改变两个元素的单独样式,如 DOM 它被视为一个人...


我可以使用样式表吗?????


提前提交。 .......
when browser encounters ..

<input type = file>
then a text box follwed by a button appears on the browser window.

now what i want to do that ...
change the seperate styles of the two elements as in DOM it is treated as a single one...

can i do this using stylesheet?????

thanx in advance........



我不明白为什么不给他们同一个班级。

I don''t see why not give them both the same class.


抱歉...


i不明白你的观点
sorry...

i don''t understand ur point of view


朋友......


i获得临时解决方案.......


< input type = file name = browse style =''display:none''> ;

< input name = file_name>

< input type = button onclick =''browse.click(); file_name.value = browse.value''> ;


这里我可以改变html页面中两个单独元素的最后两个元素的样式.....

该按钮将代表文件输入标签....这是看不见的...


但这是一个页面提交问题......


im现在尝试解决它....


如果我解决它然后我发送你的详细信息.........


祝你好运啦......
friends ......

i got a temporary solution .......


<input type = file name = browse style = ''display:none''>
<input name = file_name>
<input type = button onclick = ''browse.click();file_name.value = browse.value''>

here i can change the style of last two elements which are two seperate elements in html page .....
the button will work on behalf of the file input tag ....which is invisible ...

but here is a page submitting problem ......

i m trying to slove it now ....

if i slove it then i send u in details .........

best of luck friends ......


这篇关于如何设置&lt; input type =&quot;文件/&gt;的样式用CSS标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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