<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>倒影、阴影和文字特效 (reflect、shadow、text-shadow)</title>
<style type="text/css">
body{margin: 0}
.m-reflect{font-size: 36px;color: green;-webkit-box-reflect:below 0 linear-gradient(transparent,rgba(255,255,255,.3));}
.m-shadow{margin: 50px 0 0; width:300px;height:100px;background-color:#ff9900;box-shadow: 10px 10px 5px #888888;}
.m-text-shadow{text-shadow: 2px 2px 2px green;font-size: 36px}
</style>
</head>
<body>
<div class="m-reflect">徐同保</div>
<div class="m-shadow"></div>
<div class="m-text-shadow">徐同保</div>
</body>
</html>
![倒影、阴影和文字特效 (reflect、shadow、text-shadow)_web前端](https://s2.51cto.com/images/blog/202107/27/fb84a49274a10aa1f419b8b44f777818.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=/resize,m_fixed,w_1184)
备注:欢迎加入web前端求职招聘qq群:668352707