浏览器兼容性问题 [英] Browser compatability issue
本文介绍了浏览器兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用
< asp:FileUpload ID =fileuploadCssClass =uploadrunat =serverEnableViewState =true/>
它在Internet Explorer中正常工作
但在Chrome和Firefox浏览器中无效
IE8,9中的
我能看到文本框和浏览按钮
但Chrome和Firefox浏览器我只能看到浏览按钮
I am using
<asp:FileUpload ID="fileupload" CssClass="upload" runat="server" EnableViewState="true" />
it is working fine in Internet Explorer
but not working in Chrome and Firefox Browsers
in IE8,9,10 I am able to see Textbox and browse button
but Chrome and Firefox Browsers i am able to see only browse button
推荐答案
你得到了什么错误?在ie你得到文件夹的完整路径,但在chrome和firefoxe你没有得到文本框中的完整路径?这是基本的,在下面即7你在文本框中获得完整路径,但是7以上和其他浏览器你没有明确得到。
请发布你的代码并提及你得到了什么错误?
what error u got ? in ie u get folder full path,but in chrome and firefoxe u not get full path in text box ? this is basic one,in below ie 7 u get full path in text box,but above 7 and other browser u not get definitively.
Pls post ur code and mention what error u get ?
请告诉我你的错误。
你好检查下面这个例子这是你必须自定义的默认事项仅限StyleSheet
http://geniuscarrier.com/how-to-style-a-html-file-upload-button-in-pure-css/ [ ^ ]
Hello check this below example this is only default thing you have to customize your StyleSheet only
http://geniuscarrier.com/how-to-style-a-html-file-upload-button-in-pure-css/[^]
<pre><div class="fileUpload btn btn-primary">
<span>Upload</span>
<input type="file" class="upload" />
</div>
</pre>
<pre>.fileUpload {
position: relative;
overflow: hidden;
margin: 10px;
}
.fileUpload input.upload {
position: absolute;
top: 0;
right: 0;
margin: 0;
padding: 0;
font-size: 20px;
cursor: pointer;
opacity: 0;
filter: alpha(opacity=0);
}</pre>
>
这篇关于浏览器兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文