在smarty中,这样就可以简单的把一个div展示或隐藏掉
#notice_content{
width:100%;
height: 46px;
text-align: center;
color: #F0250F;
font-weight: 600;
line-height: 46px;
font-size: 18px;
overflow:hidden;
border:0px solid #f00;
}
{%if $smarty.now|date_format:'%Y-%m-%d' lte "2019-10-01"%}
<div id="notice_content">
通知:到2019-10-01号隐藏此内容
</div>
{%/if%}