在asp.net FileUpload控件的浏览按钮将CSS只 [英] Applying css on asp.net FileUpload Control's Browse Button only

查看:185
本文介绍了在asp.net FileUpload控件的浏览按钮将CSS只的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个FileUpload控件像这样

I have a FileUpload Control like this

<asp:FileUpload ID="fileuploader" runat="server" />

现在我想申请的CSS只浏览按钮,部分

Now I want to apply css only on the Browse button part

我怎样才能做到这一点?

How can I do this?

推荐答案

风格化的输入标记 TYPE =文件需要一些工作,浏览器不行为类似,当您试图遗憾的是他们的风格。

Styling an input tag with type="file" requires a bit of work, browsers don't behave similarly when you try to style them unfortunately.

有这样做虽然几个方法:

There are a few methods of doing so though:

  • <一个href="http://www.quirksmode.org/dom/inputfile.html">http://www.quirksmode.org/dom/inputfile.html
  • <一个href="http://www.appelsiini.net/projects/filestyle">http://www.appelsiini.net/projects/filestyle
  • http://www.quirksmode.org/dom/inputfile.html
  • http://www.appelsiini.net/projects/filestyle

这篇关于在asp.net FileUpload控件的浏览按钮将CSS只的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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