当前位置: 代码迷 >> HTML/CSS >> CSS 文字影子
  详细解决方案

CSS 文字影子

热度:239   发布时间:2012-11-22 00:16:41.0
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>
  相关解决方案