div使div下面消失 [英] div makes div's below it disappear

查看:175
本文介绍了div使div下面消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确定,基本上只要我将它加入我的内容< div id =midmid><?php include_once(videob / activate-or-view.php); >< / div> 它会阻止它下面的所有div显示出来。



上面的代码是我制作的模块但它自己需要5个文件才能运行的模块,并且都是相互连接的。该模块本身工作完美,除了div毛刺。我在模块中没有任何div,并且包含模块的任何数据的唯一div就是将它保存在内容页面中的数据。



我已尝试将模块尽可能多的代码页面尽可能,但这似乎并没有解决问题。我相信我的问题是在 div 内有<?php?> 我试过很多方法,但没有人似乎工作,我相信这是事实,我包含在一个div内,因为这些错误都链接到模块,主要是youtube嵌入代码,我实际上从youtube获得它自我

我使用phpscanner扫描了单个文件,并且它们都似乎回来了罚款,但是当我扫描他们都聚集在一起的页面,似乎会带来错误,就像他们什么都没有。基本上我想知道是否有任何机构知道这些错误以及最重要的是,他们是否有丝毫的想法,为什么当我在<?php?> 包含一次 >它干扰了位于它下面的任何 div的



我对PHP很陌生,但我学习的很完美快速。我仍然通过书籍和视频学习php,但是我似乎无法找到我正在寻找的答案,所以如果有人知道我可以如何解决这个问题,那么我将非常感激。

b $ b

解决方案

您的示例显示< div id =midmid><?php include_once(videob / activate-或-view.php); ?>



但是,您是否在包含php之后关闭div?

 < div id =midmid><?php include_once(videob / activate-or-view.php); ?>< / DIV> 

第二个问题可能是包含的文件末尾有?> php结尾标记。如果包含的文件有php结尾标记,有时将php文件包含到另一个php文件中将会混乱。


ok so basically as soon as I include this into my content <div id="midmid"><?php include_once ("videob/activate-or-view.php"); ?></div>it stops all divs underneath it from showing up.

the code above is to a module I have made but the module it self needs 5 files to function and are all interlinked to each other. the module itself works perfect except the div glitch. I do not have any divs in the modules and the only div containing any data for the module is the one that is holding it in the content page.

I have tried bringing as much code to the page as possible but that didn't seem to solve the problem. I believe my problem is having <?php ?> within a div I have tried a number of methods but none seem to work and I believe it is the fact that I am containing within a div as these errors are all link to the module and mainly the youtube embed code I actually got from youtube it self

I have scanned the individual files with phpscanner and they all seem to come back fine however when I scan the page where they all come together it seems to bring up errors like they were nothing.

Basically I was wondering if any body knows away around these errors and above all else whether they have the slightest idea why when I add the include once between <?php ?>it glitches out any div's that are placed beneath it.

I am new to php but i am learning quite fast. I am still studying php through books and videos but I can't seem to find the answers i am looking for so if anyone knows how I might be able to solve this problem then I would be appreciate it a lot.

解决方案

your example shows <div id="midmid"><?php include_once ("videob/activate-or-view.php"); ?>

But do you close the div after including the php aswell?

<div id="midmid"><?php include_once ("videob/activate-or-view.php"); ?></div>

The second problem might be that the included file has ?> php ending tag at the end. Sometimes including php files into another php files will be messed up if the included file has php ending tag.

这篇关于div使div下面消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆