PHP开发企业网站教程之后台框架

下面来看一张截图,了解框架的作用

000.png

如上图所示

上面的部分我们成为top   左边的为left   右边的为right

main页面是包含我们这3个页面的

下面我们来看一下

main页面的代码

<!DOCTYPE html>
<html>
<head>
   <title></title>
   <meta charset="utf-8">
</head>
<frameset rows="20%,*">
   <frame src="top.php" name="top" noresize></frame>

   <frameset cols="15%,*">
       <frame src="left.php" name="left" noresize></frame>
       <frame src="right.php" name="right"></frame>
   </frameset>
</frameset>
</html>

top页面代码:

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8">
    <style type="text/css">
            body{margin-top:50px;text-align:center;}
            a{text-decoration:none;float:right;margin-right:15px;color:red;}
    </style>
</head>
<body>
    <h1>合肥领航环保科技公司后台管理系统</h1>
</body>
</html>

left页面代码

<!DOCTYPE html>
<html>
<head>
    <title>lift</title>
    <meta charset="utf-8">
</head>
<style type="text/css">
    .left{margin-top:25px;margin-left:30px;}
    a{color:red;text-decoration:none;}
    a:hover{color:green;}
</style>
<body>
    <div class="left">
        <a href="user.php" target="right">管理员管理</a></br></br>
        <a href="about.php" target="right">关于我们</a></br></br>
        <a href="news.php" target="right">新闻资讯</a></br></br>
        <a href="product.php" target="right">产品管理</a></br></br>
        <a href="contact.php" target="right">联系我们</a></br></br>
    </div>
</body>
</html>

right 页面就是我们点击左侧出现的页面,比如管理产品页面或者管理管理员页面

注: 本课程文件的以  .php 为后缀名

继续学习
||
<?php echo "框架学习"; ?>
提交重置代码
章节
笔记
提问
课件
反馈
捐赠

PHP开发企业网站实战教程

高并发千万级数据库系统解决方案
  • 推荐课程
  • 评论
  • 问答
  • 笔记
  • 课件下载

green light

这个代码只能看着学或者看着敲?不能复制?

6年前    添加回复 0

淡然

用的是什么框架?

6年前    添加回复 0

什么框架?

[最新 ringa_lee 的回答] 这个实战没有框架哦,是用的原生php写的

时间:6年前

源代码问题

[最新 ringa_lee 的回答] 源代码,小编正在努力整理中哈~,很快在我们的下载站就可以下载了!下载站地址 www.php.cn/xiazai

时间:6年前

课件暂不提供下载,工作人员正在整理中,后期请多关注该课程~