Syntax Error in template "D:/wamp/www/a/shop/Admin/View\Boot\zhuce.html" on line 13 "div{text-align: center;}" - Unexpected ": ", expected one of: "}" , " "
错误位置
FILE: D:\wamp\www\a\ThinkPHP\Library\Vendor\Smarty\sysplugins\smarty_internal_templatecompilerbase.php LINE: 621
代码上下文都没有,还是提供更多代码片段把
如果用模板引擎就不要把css放入html或者php中,因为默认会把{}里面的当成模板来解析
或者修改默认的识别,比如,改成{{}}这样
应该是你模板识别style样式时,也把{}当成模板标签了