PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

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

原创
2016-09-05 08:59:54 1148浏览


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

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

回复内容:


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

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

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

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