网站右边调用就显示空白

用的mymps程序 就是下面这段代码 只要加上 {if $announce neq ''} 类似的代码 就显示空白 网站其他地方就没事




<div class="announce_faq"> {if $announce neq ''} <div class="announce"> <div class="hd"> <div class="span">网站公告</div> <div class="more"><a href="{$about.announce_uri}" target="_blank">更多</a></div> </div> <div class="bd"> <ul> {foreach from=$announce item=announce name=announcer} <li><span class="announcetitle"><a href="{$announce.uri}" title="{$announce.title}" target="_blank"><font color="{$announce.titlecolor}">{$announce.title|truncate:26}</font></a></span><span class="announcetime">{$announce.pubdate|date_format:'%m-%d'}</span></a></li> {/foreach} </ul> </div> </div> <div class="clear"></div> {/if} {if $faq neq ''} <div class="faq"> <div class="hd"> <div class="span">新手帮助</div> <div class="more"><a href="{$about.faq_uri}" target="_blank">更多</a></div> </div> <div class="bd"> <ul> {foreach from=$faq item=faq} <li><a href="{$faq.uri}" target="_blank">{$faq.title|truncate:'30'}</a></li> {/foreach} </ul> </div> </div> {/if} </div> </div>
阅读 2.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
logo
101 新手上路
子站问答
访问
宣传栏