css css 를 php 확장자로 사용하기
페이지 정보
주의 본 정보들을 타 인터넷 사이트나 통신 동호회로 이동 게시하는 것을 무조건 금지합니다
본문
<?php
add_stylesheet('<link rel="stylesheet" type="text/css" href="http:도메인/폴더위치/css.php">', 0); // 상단에 삽입
echo "<span id='new_a'>실험중1</span>";
echo "<span class='new_b'>실험중2</span>";
------------
http:도메인/폴더위치/
위 css.php 파일은 아래와 같이 기록
<?php
header("Content-type: text/css; charset: UTF-8");
?>
#new_a {font-size:16px;color:#f00}
header("Content-type: text/css; charset: UTF-8");
?>
#new_a {font-size:16px;color:#f00}
#new_b {font-size:12px;color:#777}