![](/img/trans.png)
[英]Is there a way to override Wordpress' style.css file so that I can use custom CSS on a theme template?
[英]Can I use filemtime('style.css') in PHP to force a browser to reload a css?
我可以在PHP中使用filemtime強制瀏覽器重新加載css嗎?
$mtime = filemtime('style.css');
echo "\style.css?mod=" . $mtime;
filemtime太慢了嗎?
filemtime
在正常情況下應該沒問題。
您還可以查看電子標簽,讓Apache為您完成工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.