css设置样式

/* CSS Document */
<style>
<!--
h2{
     font-family:"华文新魏";
  color:blue;
  font-size:36px;
  background: #FF9900;
  }
p{
   font-family:"华文宋体";
   font-size:24px;
   background:#FFCCFF; 
   color: #00FF00;
     }
p span
{ font-weight:bold;
  color: #FF00FF;

 
.class1{ /*自定义样式* 套用在index*/
   font-size:14px;
   color: #FF00FF;
   font-family:"华文宋体";

#id5{/*自定义样式* 套用在list*/
   
  font-weight:bold;

 
.c1,.c2,.c3,.c4/*集体声明*/
{
     font-size:36px;
}

h2.special
{
     font-size:12px;
}
h2
{
     font-size:36px;
}
h2 span
{
     color:red;
}
.special
{
     font-size:24px;
}
a:link{ /*连接本身的状态*/
       text-decoration:none;
    color:#00CCFF;
      }

a:wisited{/*连接访问过的状态*/
       text-decoration:none;
    color:#00FF66;
    }
   
a:hover{/*鼠标放上的状态*/
        font-weight:bold;
  color:#9933FF;
  }   
-->
</style>

 

posted on 2011-10-11 08:14    阅读(214)  评论(0)    收藏  举报