Heim  >  Artikel  >  Backend-Entwicklung  >  smarty为什么报这个错?css中的错误也关模板引擎的事吗?

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

WBOY
WBOYOriginal
2016-09-05 08:59:541375Durchsuche

<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放到外部文件就好了

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn