登录 | 注册 | FAQ
Anonymous

PHP Css classs

+ 发表回复

2 篇帖子 分页: 1 / 1


Re: PHP Css classs

Zachariahbroune » 周四 12月 02, 2010 10:16 am

.[Class Name] {
property:value;
...
}
<?php
header("Content-type: text/css");
$white = '#fff';
$dkgray = '#333';
$dkgreen = '#008400';
?>
body {
background:<?=$white?>;
color:<?=$dkgray?>;
}
h1, h2, h3, h4 {
color:<?=$dkgreen?>;
}
blockquote {
color:<?=$dkgreen?>;
}
头像

Zachariahbroune

  • 帖子: 5
  • 注册: 周四 12月 02, 2010 6:25 am

Re: PHP Css classs

Veeramanikandan » 周三 5月 13, 2015 2:35 pm

start <?php
and give the element of you need
?>
close the tag php should refer the code
头像

Veeramanikandan

  • 帖子: 20
  • 注册: 周一 9月 22, 2014 4:03 pm


+ 发表回复

分页: 1 / 1