z-index在iframe中不能使用pdf

时间:2016-05-09 09:57:43

标签: c# asp.net

enter image description here我正在我的页面中打开一个pdf文件,iframe.it在其他浏览器中工作正常,除了Internet Explorer。在Internet Explorer中,我的页面的顶部菜单是ifh。我尝试了z-index但它对我没有用。可以帮助我吗? 这是我的母版页代码:

<body>
    <form id="form1" runat="server">
         <div id="wrapper" class="mywrapper">
            <!-- Navigation -->
            <!-- Fixed navbar -->
            <nav class="navbar navbar-default navbar-fixed-top" style="position:relative;z-index:2;">
              ......
            </nav>
            <div class="row">
                <div class="col-md-3">
                    <div class="navbar-default sidebar" role="navigation">                   
                        <div class="sidebar-nav">
                           ...................
                        </div>
                        <!-- /.sidebar-collapse -->
                    </div>
                    <!-- /.navbar-static-side -->
                </div>

                <div class="col-md-9 col-sm-9 col-lg-9" style="background-color: #FFF; z-index:1;" >
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
            </div>
    </form>
</body>

这是我的内容aspx页面

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <br />

        <div class="embed-responsive embed-responsive-16by9" style="height:1000px;">
            <iframe class="embed-responsive-item" id="pdf" src="abc.pdf" style="position:relative;z-index:1;" ></iframe>    
        </div>    

</asp:Content>

0 个答案:

没有答案