1、php代码是包含在代码块里的,就像JavaScript一样 //简写形式 //代码块中引入另一个php文件://require和includerequire test.php; //是优先引入(即在文件头就会引入),若找不到引入文件,产生错误并停止运行脚本include test.php; //是读到这一行
来源: html背景色渐变(通过CSS实现) – friendan的专栏 – 博客频道 – CSDN.NET
<style type="text/css">
.linear{<br />
width:100%;<br />
height:600px;<br />
FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=##15A216,endColorStr=#fafafa); /*IE*/<br />
background:-moz-linear-gradient(top,#15A216,#fafafa);/*火狐*/<br />
background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#15A216), to(#fafafa));/*谷歌*/ </p>
<p> background-image: -webkit-gradient(linear,left bottom,left top,color-start(0, #15A216),color-stop(1, #fafafa));/* Safari & Chrome*/<br />
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa'); /*IE6 & IE7*/<br />
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa')"; /* IE8 */ </p>
<p> }<br />
</style>
<div class="linear"></div>
Mikel