新闻详情

CSS字体颜色调用

2158 2009/2/28

<html>
<head>
<title>class选择器</title>
<style type="text/css">
<!--
.one{
 color:red;   /* 红色 */
 font-size:18px;  /* 文字大小 */
}
.two{
 color:green;  /* 绿色 */
 font-size:20px;  /* 文字大小 */
}
.three{
 color:cyan;   /* 青色 */
 font-size:22px;  /* 文字大小 */
}
-->
</style>
   </head>

<body>
 <p class="one">class选择器1</p>
 <p class="two">class选择器2</p>
 <p class="three">class选择器3</p>
 <h3 class="two">h3同样适用</h3>
</body>
</html>

相关资讯

18973218026
返回顶部