首页  >  文章  >  后端开发  >  smarty为什么报这个错?css中的错误也关模板引擎的事吗?

smarty为什么报这个错?css中的错误也关模板引擎的事吗?

WBOY
WBOY原创
2016-09-05 08:59:541375浏览

<code>
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: "}" </code>

原来是因为smarty语法与css语法冲突,都有大括号,把css放到外部文件就好了

回复内容:

<code>
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: "}" </code>

原来是因为smarty语法与css语法冲突,都有大括号,把css放到外部文件就好了

这应该是符号问题,你看看是不是有符号缺失或者中文状态的符号

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn