本人新手,求大神帮小弟我解决

WBOY
Release: 2016-06-13 11:50:10
Original
830 people have browsed it

本人新手,求大神帮我解决

<br /><ul><br />	<li class="subnav_main_1 subnav_current">今日任务(<[email&#160;protected]}>个)</li><br />	<li class="subnav_main_2">游戏试玩(<[email&#160;protected]}>个)</li><br />	<li class="subnav_main_3">广告体验(<[email&#160;protected]}>个)</li><br />	<li class="subnav_main_4">正在体验中的任务(<[email&#160;protected]}>个)</li><br />	<div class="clr"></div><br /></ul><br />
Copy after login

第四li,当smarty获取的个数为0时,就隐藏第四个li,获取的数不为0,就不隐藏
我该怎么做
------解决方案--------------------
{if $count}<br /><li class="subnav_main_4">正在体验中的任务(<{$myactions<br><font color='#FF8000'>------解决方案--------------------</font><br>@count}>个)</li><br />{else}<br /><li class="subnav_main_4" style="display:none;">正在体验中的任务(<{$myactions<br><font color='#FF8000'>------解决方案--------------------</font><br>@count}>个)</li><br />{/if} 
Copy after login

------解决方案--------------------


谢谢大神帮我们家妞解决问题

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!