观澜 发布的文章

时间戳转日期:

$time = time();
$date = date("Y-m-d H:i", $time);

日期转时间戳:

$date = "2020-02-20";
$time = strtotime($date);

添加以下css代码

html {-webkit-filter: grayscale(100%);filter:progid:DXImageTransform.Microsoft.BasicImage(graysale=1);}

如果没有生效修改<!DOCTYPE HTML>标签与标签即可

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">