在ASP.NET文件上传控件中更改浏览按钮的样式 [英] Change the style of browse button in ASP.NET file upload control

查看:94
本文介绍了在ASP.NET文件上传控件中更改浏览按钮的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改文件上传浏览按钮的宽度和样式,如背景颜色等?我已经使用jquery控件或其他html表单技术查看了提供的替代答案。我只需要在aspx页面中对文件上传服务器端控件进行更改。



谢谢

How do I change the file upload browse button width and styles such as background colors etc? I have already reviewed the answers provided alternative using jquery controls or other html forms techniques. I just need to do change in the file upload server side control in aspx page.

Thanks

推荐答案

根据需要,只需应用样式。定义一个css类并设置控件属性CssClass。



类似于:

设置输入类型=文件 [ ^ ]

ASP / HTML中的样式文件上传控件 [ ^ ]
Just apply the style as per need. Define a css class and set the control property CssClass.

Something similar to:
Styling an input type="file"[^]
Style File upload control in ASP / HTML[^]


请查看以下文章,了解在输入类型文件中应用css的方法。



1. jQuery的文件样式插件 [< a href =http://www.appelsiini.net/projects/filestyletarget =_ blanktitle =New Window> ^ ]。

2. 样式输入类型=fi le [ ^ ]。

3. 使用CSS和DOM设置文件输入 [ ^ ]。



谢谢...
Please go through the below articles to know about the methods to apply css on input type file.

1. File Style Plugin for jQuery[^].
2. Styling an input type="file"[^].
3. STYLING FILE INPUTS WITH CSS AND THE DOM[^].

Thanks...


您的服务器端控件呈现为输入类型文件,您可以使用此方法应用样式



使用CSS和DOM设置文件输入 [ ^ ]
your server side control renders as input type file on which you can apply style using this method

STYLING FILE INPUTS WITH CSS AND THE DOM[^]


这篇关于在ASP.NET文件上传控件中更改浏览按钮的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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