It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




已关闭8年。




在假期(anouka和圣诞节)期间,我想展示我网站的不同版本。

我想更改图像,CSS等...

有一个非常快的方法吗?还是特殊技术?

我的网站在php中,我使用apache

最佳答案

<?php
$christmas = "12-25";
$todays_date = date("m-d");
if($todays_date == $christmas) {
   // Load a different stylesheet
} else {
   // Load the stylesheet for the rest of the yeat
}
?>

每年圣诞节那天,这将加载不同的样式表。可以通过更改$christmas变量将其更改为任何其他日期。我认为这就是您要寻找的...

关于php - 我网站的圣诞节和Anouka版本,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8626708/

10-09 07:11