index.php 前端套接页面
<?php
include "header.php";
include "body.php";
include "footer.php"
?>
header.php 头部页面
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> 这是标题</title>
<style type="text/css">
html,body,th{
font-family: sans-serif;
font-size: 12px;
font-weight: 400;
}
.myPHP{
padding: 20px 0 10px 0;
}
</style>
</head>
body.php 主体页面
<body>
<div class="myPHP">
这是 body 部分
</div>
</body>
footer.php 页脚页面
<footer>
这是 footer 部分
</footer>
</html>
何星星原创文章仅用于个人学习,当前页面暂不支持复制操作,了解详情或文章转载请 点此 继续!
0 条评论