1.学习HTML5+css3札记
程序源码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>多彩文字logo</title>
<style type="text/css">
h1 {
font-family: "Arial Black", Gadget, sans-serif;
font-size: 50px;
color: #369;
padding-bottom:4px;
border-bottom:5px solid #F03;
background:url(jia.com.jpg) repeat-x bottom;
width:260px;
}
.c1{color:#b3ee3a;}
.c2{color:#71c671;}
.c3{color:#00f5ff;}
.c4{color:#00ee00;}
</style>
</head>
<body>
<h1>
<span class=c1>缤</span>
<span class=c2>纷</span>
<span class=c3>夏</span>
<span class=c4>衣</span>
</h1>
</body>
</html>
程序运行结果: