对,可能很简单,但我有一个金发碧眼的时刻,我挠头。
date_default_timezone_set('Europe/London');
$today = date('d-m');
if(($today >= '01-11') && ($today <= '20-11'))
{
echo "<p class='rememberance'> </p>";
}
elseif (($today >= '2-12') && ($today <= '25-12'))
{
echo "<p class='christmas'> </p>";
}
elseif (($today >= '01-01') && ($today <= '09-01'))
{
echo "<p class='new-year'> </p>";
}
elseif (($today >= '01-04') && ($today <= '19-04'))
{
echo "<p class='easter'> </p>";
}
elseif (($today >= '01-06') && ($today <= '19-07'))
{
echo "<p class='yearend'> </p>";
}
else
{
echo "<p class='normal'> </p>";
}
我设置了一些 CSS 规则来根据 php 输出的条带显示一个小图像,现在它只显示记忆类!谁能帮忙!!?干杯