반응형
이 PHP로 CSS 파일을 시작하고 이름을 style.php로 지정합니다.
<?php
ob_start ("ob_gzhandler");
header("Content-type: text/css; charset: UTF-8");
header("Cache-Control: must-revalidate");
$offset = 60 * 60 ;
$ExpStr = "Expires: " .
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);
?>
body { color: red; }
그런 다음 PHP 파일 이름으로 CSS를 호출합니다.
<link rel='stylesheet' type='text/css' href='css/style.php' />
'css' 카테고리의 다른 글
현금(타이니 jQuery 대체) (0) | 2021.10.13 |
---|---|
'Get The App' 배너 (0) | 2021.10.13 |
디자인에서 웹 디자인으로 인쇄: 비교 유사성 (0) | 2021.10.12 |
전역 변수 (0) | 2021.10.12 |
스크롤-팔로우 사이드바, 여러 가지 기법 (0) | 2021.10.10 |
댓글