我只需要<? include_once ("SOMETHING.PHP"); ?>在 div 中放置一个。每次我将 include_once 放入 div 时,SOMETHING.PHP 都不会显示在 div 中!它最终会出现在 div 之外!
<? include_once ("SOMETHING.PHP"); ?>
这是我的 div CSS 代码:
#bcg { -moz-bo_Stack Overflow中文网
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#bcg { -moz-bo 问问题
尝试在输出缓冲区中捕获包含脚本的输出,然后回显它。
<div id="bcg"> <?php ob_start(); include_once("something.php"); echo ob_get_clean(); ?> </div>