2010-05-03 82 views

回答

2

嘗試在smarty.tpl文件中打包文字標記中的註釋。

{literal} 
<!--[if lt IE 7]>....<![endif]--> 
{/literal} 

可能會修復它。

0

我在smarty模板(.tpl)中遇到了IE條件問題。我的smarty版本是2.6.26。我使用PHP 5.5.11。我只是看着源,並嘗試智者論壇或其他網頁:)建議

這是爲我工作錯誤語法的一些調整:

{literal} 
    <!--[if IE 7]--> 
    <style> 
     .delete { 
      top: -1px; 
     } 
     .comment_input { 
      max-width: 85% !important; 
      width: 85% !important; 
     } 
    </style> 
    <!--[endif]--> 
{/literal} 

問候, 揚

相關問題