::::::::::::::
html.php
::::::::::::::
<html><head>
<link rel="stylesheet" href="css.php?id=<?=$_GET['id'];?>" type="text/css">
</head>
<body>
<p class=line>
Line Line Line Line Line Line Line Line Line Line Line Line Line Line Line Line
</p>
</body></html>
::::::::::::::
css.php
::::::::::::::
<?php
header( "Content-type: text/css");
switch( $_GET['id']) {
case 'A': echo "p.line { border: 1px solid green; }"; break;
case 'B': echo "p.line { border: 1px dotted blue; }"; break;
case 'C':
default: echo "p.line { border: 2px solid cyan; }"; break;
}
html.php
::::::::::::::
<html><head>
<link rel="stylesheet" href="css.php?id=<?=$_GET['id'];?>" type="text/css">
</head>
<body>
<p class=line>
Line Line Line Line Line Line Line Line Line Line Line Line Line Line Line Line
</p>
</body></html>
::::::::::::::
css.php
::::::::::::::
<?php
header( "Content-type: text/css");
switch( $_GET['id']) {
case 'A': echo "p.line { border: 1px solid green; }"; break;
case 'B': echo "p.line { border: 1px dotted blue; }"; break;
case 'C':
default: echo "p.line { border: 2px solid cyan; }"; break;
}
'웹개발 > CSS' 카테고리의 다른 글
웹 - 말줄임표, 어떻게 처리하시나요? text-overflow: ellipsis를 사용해보세요. (0) | 2014.09.02 |
---|---|
HTML&CSS 메뉴얼(CHM) (0) | 2006.08.16 |
CSS Tab Design 프로그램 (0) | 2006.08.16 |
CSS Designer (0) | 2006.08.16 |