Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/450.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 奇怪的DNN行为-嵌套html标记_Javascript_Html_Iframe_Dotnetnuke - Fatal编程技术网

Javascript 奇怪的DNN行为-嵌套html标记

Javascript 奇怪的DNN行为-嵌套html标记,javascript,html,iframe,dotnetnuke,Javascript,Html,Iframe,Dotnetnuke,我遇到了一个奇怪的结果,我认为我无法访问表单字段,因为我的一个模块在body标签中生成了一个微型页面,这似乎是由谷歌广告或表单模块(似乎加载到表单上方)造成的 它听起来像是来自那些模块吗?如果是这样的话,这些嵌套页面是否可能是导致我的字段无法访问的原因?行为几乎就像一个DIV被放在表单的顶部一样,下面的字段仍然可以使用 这是页面来源中与我有关的部分: ..Normal HTML/Site code above... ..... <!--DOCUMENTS SUCH AS BELOW KEE

我遇到了一个奇怪的结果,我认为我无法访问表单字段,因为我的一个模块在body标签中生成了一个微型页面,这似乎是由谷歌广告或表单模块(似乎加载到表单上方)造成的

它听起来像是来自那些模块吗?如果是这样的话,这些嵌套页面是否可能是导致我的字段无法访问的原因?行为几乎就像一个DIV被放在表单的顶部一样,下面的字段仍然可以使用

这是页面来源中与我有关的部分:

..Normal HTML/Site code above...
.....
<!--DOCUMENTS SUCH AS BELOW KEEP GETTING NESTED-->
#document
<html>
    <head>
        <script type="text/javascript" src="..."></script>
    </head>
    <body marginwidth="0" marginheight="0">
        <iframe width="undefined" height="undefined" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" style="display:none" id="zrt_ads_frame1" name="zrt_ads_frame1" src="...">

        </iframe>
        <script>google_loader_used="sa";google_ad_format="undefinedxundefined";google_ad_unit_key="1117272154";google_show_ads_impl=true;google_unique_id=1;google_async_iframe_id="aswift_0";google_start_time=1393820506698;google_ad_handling_mode="EI";google_bpp=8;google_async_rrc=0;</script>
        <script src="..."></script><script>google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad, google_eid);</script>
        <iframe id="google_ads_frame1" name="google_ads_frame1" width="undefined" height="undefined" frameborder="0" src="..." marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">
            #document
            <html>
                <head></head>
                <body marginwidth="0" marginheight="0"></body>
        </iframe>
        <iframe id="google_osd_static_frame_3804139317944" name="google_osd_static_frame" style="display: none; width: 0px; height: 0px;">

        </iframe>
    </body>

这是我的问题吗?

还是这只是iframe的默认行为?是的。iFrame内部有自己的html文档。好的,谢谢,我将继续查找真正的问题=iFrame在DNN中做奇怪的事情。我有一个链接打开了一个指向另一个站点的IFrame,但是当你关闭另一边时,它改变了菜单栏的CSS,所以它变小了20%。