首页 > 代码库 > 兼容多浏览器的CSS文字阴影

兼容多浏览器的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><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>石家庄播音主持培训</title><style type="text/css">.title_div {height:30px; background:#888888; overflow:hidden; line-height:30px; padding-left:35px;}.title_text { color:#FFF; margin:1px 0 0 0px; position:absolute; z-index:20; float:left;}.title_shadow { color:#000; margin:2px 0 0 2px; position:absolute; z-index:10; float:left;}</style></head><body><div class="title_div"><div class="title_text">乐园</div><div class="title_shadow">乐园</div></div></body></html>