Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:F:\phpstudy\WWW\smartys\smarty\templates\intro.html" on line 12 "*{margin:0;padding:0;border:0;}" - Unexpected ":", expected one of: "}" <-- thrown in F:\phpstudy\WWW\smartys\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 12
原来是因为smarty语法与css语法冲突,都有大括号,把css放到外部文件就好了
建议用Smarty时,把界定符修改一下,因为还有可能和javascript冲突。
之前做项目时都是修改为{% %}
http://www.smarty.net/docs/zh...