php - 可以使用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>
解决方案
推荐阅读
- c++ - fstream 不能与俄语文本一起正常工作?
- gulp - Gulp 功能打印出不太详细的控制台日志消息?
- node.js - 使用vercel/ncc时找不到模块错误如何解决
- python - 多项选择测验,如何处理不需要的答案?| Python
- angular - Angular - 解析嵌套的 JSON
- javascript - 我可以在 next.config.js 中使用 @next/env 包吗?
- r - R OSRM 计算 data.frame 内的行进距离
- azure-active-directory - MS Graph API 频繁/过度触发客户端应用程序针对 Active Directory 用户更改
- c# - (Unity3D) 错误 CS1503:参数 2:无法从“float”转换为“UnityEngine.Space”
- java - 有限输入设备的任务 API