<!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>文字阴影</title> <style type="text/css"> <!-- body{ margin: 15px; font-family:黑体; font-size: 60px; font-weight: bold; } #new { color: #AAAAAA; position: relative; top: -1.06em; left: 0.13em; z-index: 0; } #promer { position: relative; z-index: 1; } --> </style> </head> <body> <div id="father"> <div id="promer">好好学习</div> <div id="new">好好学习</div> </div> </body> </html>