标签:cin size family gif res read end com 首页
1.PHP+JQ+HTML
HTML
<div id="header"> <img src="loading.gif" alt=""> //等待的gif图 </div> <div id="main"> <h3>首页</h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus amet architecto asperiores culpa error, maiores natus neque officiis perspiciatis repellendus sed sunt. Eius eos molestias nihil placeat possimus sit veniam.</p> </div>
PHP
header("Content-Type:text/html;charset=UTF-8"); //设置响应头 ?> <hr> //输出HTML代码 <p id="copyright">版权所有? 2017-10-11</p>
JQ
<script> $(document).ready(fn)/*页面加载完成后实现*/ $(function(){ /*页面加载完成后实现*/ $("#header").load("footer.php") }) </script>
输出效果:
标签:cin size family gif res read end com 首页
原文地址:http://www.cnblogs.com/liangfc/p/7819778.html