本堃不方 2021-09-18 10:35 采纳率: 66.7%
浏览 51
已结题

php index.php的逻辑问题


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <?php
        include "nav.html";
        include "a.html";
        // include "b.html";
        // include "c.html";

        include "foot.html";
    ?>
</body>
</html>

这是我的index.php

我引入了导航栏nav.html,中间可以变换的a.html,页脚foot.html,当我点击导航栏的时候,出现对应的内容(也就是引入的a.html,b.html,c.html变化),请问大咖们这一块的逻辑应该怎么写

  • 写回答

2条回答 默认 最新

  • 上海小飞象 2021-09-18 15:32
    关注

    直接用iframe不香吗?

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 9月21日
  • 创建了问题 9月18日