如何在所有浏览器中以相同的方式显示FileUpload控件 [英] How to display FileUpload control in same way in all browsers

查看:94
本文介绍了如何在所有浏览器中以相同的方式显示FileUpload控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人请帮助我,我想在所有浏览器中以相同的方式显示ASP.NET文件控件至少在几个时间内。它们在所有浏览器中看起来都不同。我需要在所有浏览器中的浏览按钮之前显示输入框

SOMEONE PLEASE HELP ME I WANT TO DISPLAY ASP.NET FILEUPLOAD CONTROLL IN THE SAME WAY IN ALL BROWSERS IN LEAST AMOUNT OF TIME. They look different in all browsers.I need to display the inputbox before browse button in all browsers

推荐答案

将指定的css样式表用于特定浏览器的文件上传控制{ie} ,你的问题会解决。
use specified css stylsheet for file upload contral for specific browser{ie}, your problem would solve.


这是Chrome和Safari中FileUpload控件的默认行为。 [ ^ ]是一种解决方法。
This is the default behavior of FileUpload control in Chrome and Safari. This[^] is a workaround however.


Hai

您无法在所有浏览中获得输入框,所以你尝试使用像文本框和asp按钮,并在按钮中添加代码,如选择文件,并且你没有得到文件的完整路径,IE只显示完整路径,其他浏览器只显示文件名,所以更好的显示文件名仅在浏览器文件后的输入框中的所有浏览器中
Hai
you cant get input box in all browse,so u try to use like text box and asp button and add code in button like choose file ,and also u not get full path of the file ,IE only show full path ,other browser show file name only,so better show file name only in all browser in input box after browser file


这篇关于如何在所有浏览器中以相同的方式显示FileUpload控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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