我的表单并不总是将不透明度设置为0来呈现realupload。有人看到我所缺少的东西吗?

 <style type="text/css">
   .realupload
    {
        position: absolute;
        top: 0;
        width: 270px;
        right: 0; /* start of transparency styles */
        opacity: 0;
        -moz-opacity: 0;
        filter: alpha(opacity:0); /* IE7 and under */
        -ms-filter: "Alpha(Opacity=0)"; /* IE8 */ /* end of transparency styles */
        z-index: 3; /* bring the real upload interactivity up front */
    }
</style>

<asp:FileUpload ID="realupload" runat="server" Width="75%" OnChange="this.form.fakeupload.value = this.value; javascript: checkFile(); Remove(this); return false;"
                                CssClass="realupload" onkeydown="return (event.keyCode==9);" onpaste="return false;"
                                ToolTip="Click to browse your computer to select the File you would like to import" />

最佳答案

当前,您将样式设置为类而不是ID。将.realupload更改为#realupload,然后查看是否有任何更改。

09-20 21:47