Blogger Information
Blog 22
fans 0
comment 0
visits 17746
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php页面分离
yestrue的博客
Original
620 people have browsed it

first.php 文件

<?php
header("content-typa:text/html; charset=UTF-8");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="dist/css/bootstrap.css">
<script src="dist/js/jquery-3.2.1.min.js"></script>
<script src="dist/js/bootstrap.js"></script>
<style>
.foot{
height: 60px;
line-height: 60px;
background-color: skyblue;
}
</style>
</head>
<body>

content.php 文件

<?php 
	include 'inc/first.php';
?>
<div class="container">
	<div class="row">
		<div class="col-md-12">
			<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">ghostchina</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
        <li><a href="#">Link</a></li>
        
      </ul>
     
      
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
		</div>
	</div>
</div>
<div class="container">
	<div class="row">
		
		<div class="col-md-8">
			<div class="page-header">
		  		<h1>产品展示 <small>多种产品细节</small></h1>
			</div>
			<div class="row">
			  <div class="col-xs-6 col-md-3">
			    <a href="#" class="thumbnail">
			      <img src="555.png" height="180" width="134" alt="...">
			    </a>
			  </div>
			  <div class="col-xs-6 col-md-3">
			    <a href="#" class="thumbnail">
			      <img src="555.png" height="180" width="134" alt="...">
			    </a>
			  </div>
			  <div class="col-xs-6 col-md-3">
			    <a href="#" class="thumbnail">
			      <img src="555.png" height="180" width="134" alt="...">
			    </a>
			  </div>
			  <div class="col-xs-6 col-md-3">
			    <a href="#" class="thumbnail">
			      <img src="555.png" height="180" width="134" alt="...">
			    </a>
			  </div>
			</div>
		</div>
		<div class="col-md-4">
			<div class="page-header">
		  		<h1>产品新闻</h1>
			</div>
			<div class="list-group">
			  <button type="button" class="list-group-item">Cras justo odio</button>
			  <button type="button" class="list-group-item">Dapibus ac facilisis in</button>
			  <button type="button" class="list-group-item">Morbi leo risus</button>
			  <button type="button" class="list-group-item">Porta ac consectetur ac</button>
			  <button type="button" class="list-group-item">Vestibulum at eros</button>
			</div>
		</div>
		
	</div>
</div>

<?php 
	include 'inc/last.php';
?>

last.php 文件

<div class="container">
	<div class="row">
		<div class="col-md-12 text-center bg-success foot">
			版权所有xxx公司
		</div>
	</div>
</div>
</body>
</html>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post