首页 > 解决方案 > 可以使用include将其他标签放在html标签之外吗?

问题描述

例如: mainpage.php - 包含 html、head 和 body 标签。

<?php include('otherpage.php') ?>
<html>
   <head>

   </head>
   <body>
        Contents.....
   </body>
 </html>

otherpage.php - 在 otherpage.php 中包含一些按钮和文本。

   <nav>
       <div>Text or buttons here....</div>
    </nav>

标签: phphtml

解决方案


推荐阅读