Heim > Fragen und Antworten > Hauptteil
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{$Title|default='默认网站'}</title>
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<script src="/static/js/jquery-3.3.1.min .js"/>
<script src="/static/js/bootstrap.min.js"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
< h2 class="text-center">学生信息表</h2>
<table class="table table-default table-bordered table-hover text">
<tr class="bg-primary" >
<td>ID</td>
<td> ;年龄</td>
<td>身高</td>
</tr> ;
{volist name="data" id="list"}
<tr>
<td>{$list.id}</td>
<td& gt;{$list.name}</ td>
<td>{$list.age}</td>
<td>{$list.height}</td>
< ;/tr>
{/volist}
</table> ;
</div>
<div class="col-md-2"></div>
</div>
</div>
</body>
< ;/html>