日期:2014-05-17  浏览次数:20672 次

CSS 文字阴影
<!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>
<title>CSS Shadow Text</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>

.shadowText{
font:bold 30px Georgia, "Times New Roman", Times, serif
display:block;
color:#888;
position:relative;
}

.shadowText span{
display:block;
top:-3px;
left:-3px;
position:absolute;
color:#F30;
}
</style>
</head>
<body>
<br/><br/>
<h1 class="shadowText">This is a CSS Shadow Text.<span>This is a CSS Shadow Text.</span></h1>
</body>
</html>