<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>库存信息库</title>
<style type="text/css">
.bgcolor0{background-color:#F8F8F8;}
.bgcolor1{background-color:white;}
.font0{font-weight:bold;}
.font1{font-weight:normal;}
.ml{margin-left:10px;}
.mt{margin-top:20px;}
div.message{margin:50px auto;width:800px;}
dl{margin:0;padding:10px;}
dl dt{}
/*dl dd span.date{color:grey;font-size:12px;font-style:italic;}*/
dl dd{}
</style>
</head>
<body>
<dl >
<dt>
{$table_message.title}
</dt>
<dd class="date mt">
<span>{$table_message.date|date="Y-m-d",###}</span>
</dd>
<dd class="mt">
{$table_message.message}
</dd>
</dl>
</body>
</html>$this->display();大家帮忙看一下,不大明白是什么问题,当我把这句注释掉的CSS样式<!--dl dd span.date{color:grey;font-size:12px;font-st
删掉后就恢复正常了,否则会出现模板变量没有替换的情况.
QQ截图20130201014948.jpg
( 31.49 KB 下载:101 次 )
最佳答案