我想爲postnuke cms設計一個主題。smarty標籤和css條件標籤是一樣的,解決方案是什麼?
並希望在模板文件中使用css條件。像
<!--[if $n eq ''] -->....<!--[/if]-->
PostNuke的使用Smarty的標記,以便當我使用
<!--[if lt IE 7]>....<![endif]-->
它提供了有關標籤的一些錯誤。 我能做什麼?
我想爲postnuke cms設計一個主題。smarty標籤和css條件標籤是一樣的,解決方案是什麼?
並希望在模板文件中使用css條件。像
<!--[if $n eq ''] -->....<!--[/if]-->
PostNuke的使用Smarty的標記,以便當我使用
<!--[if lt IE 7]>....<![endif]-->
它提供了有關標籤的一些錯誤。 我能做什麼?
嘗試在smarty.tpl文件中打包文字標記中的註釋。
{literal}
<!--[if lt IE 7]>....<![endif]-->
{/literal}
可能會修復它。
我在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}
問候, 揚