<?php
// declare the output of the file as CSS
header('Content-type: text/css');
// include the script
//include('others.php');
$width = $_GET['w'];
$height = $_GET['h'];
?>
代码示例
:
div{width:<?=$width?>px;height:<?=$height?>px;border:blue 1px solid;}
fonts.php
代码示例
:
<?php
// declare the output of the file as CSS
header('Content-type: text/css');
// include the script
//include('others.php');
$size = $_GET['s'];
$color = $_GET['c'];
?>
body{font-family:arial;font-size:<?=$size?>px;color:<?=$color?>}