我从一个物理位置拉出pdf文件并在iframe中显示它,它在IE中有效,但在chrome和firefox中不起作用,我对所使用代码的任何建议都很赞赏
@{Html.BeginForm("NSFResultPrint", "NSF", FormMethod.Post, new { id = "frm_InhouseNsfscreen" });}
<div align="center">
<object data="@Url.Action("DisplayPdfIframe", "NSF")#toolbar=1,zoom=100" type="application/pdf" width="98%" height="730">
<iframe id="pdfframe" width="98%" height="730px" frameborder="0" src="@Url.Action("DisplayPdfIframe", "NSF")#toolbar=1,zoom=100"></iframe>
</object>
</div>
<table width="100%" border="0" cellpadding="5" cellspacing="0" align="center">
<tr>
<td align="center">
</td>
</tr>
</table>
<input type="hidden" value="@TempData[UCCConsts.TempDataNames.NSFPaymentId]" id="hdnPaymentId" name="hdnPaymentId" />
@{Html.EndForm();}