VS2012中的fileupload控件显示问题
本机环境:WIN8+IE10打开页面显示fileupload时,浏览按钮无法显示
同一个页面,但在IE6下面显示是正常的。
有遇到过这样的问题的吗? --------------------编程问答-------------------- CSS冲突了?? --------------------编程问答-------------------- 没有CSS的事,我新建了一个网站,只建了一个页面来测试的 --------------------编程问答-------------------- 页面代码贴出来,多半是代码问题 --------------------编程问答-------------------- 源码如下
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:FileUpload ID="FileUpload1" runat="server" Width="325px" />
<div>
</form>
</body>
</html>
--------------------编程问答-------------------- <asp:FileUpload ID="FileUpload1" runat="server" Width="325px" />
把Width="325px"去掉看看 --------------------编程问答-------------------- 楼上的方法试过了,没用 --------------------编程问答-------------------- 貌似是浏览器的问题,以前遇到过,fileupload在ie6-8没问题,ie9就出问题了。 --------------------编程问答-------------------- 那就直接改成用:
<input type="file" id="xxx" name="yyy" />
不要asp控件了 --------------------编程问答-------------------- HTML控件也是一样的现象,这些方法我都尝试过了 --------------------编程问答-------------------- 不是吧,还有这么神器的错误》》ie10我没用过但是,ie9都是可以的话ie10肯定可以 --------------------编程问答-------------------- 换台电脑试试呢?
难道微软专门针对你个人,做了神马手脚。。。。 --------------------编程问答-------------------- ios 上的fileupload 更有意思 --------------------编程问答-------------------- WIN7+ie10好的嘛。。。恭喜楼主,RPWT吧
补充:.NET技术 , ASP.NET