盒子居中 margin: 0 auto;
阴影 text-shadow:2px 2px 3px green;
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>阴影</title>
<meta name="Keywords" content="关键字">
<meta name="description" content="简介">
<!-- 盒子居中 margin: 0 auto;
阴影 text-shadow:2px 2px 3px green;
-->
<style>
@font-face {
font-family: "caoshu";
src: url("fonts/caoshu.TTF");
}
.box {
/*盒子居中*/
margin: 0 auto;
width: 600px;
height: 200px;
background-color: aqua;
text-align: center;
font: 50px/200px 'caoshu';
/*阴影text-shadow*/
/*text-shadow: 0px 2px 3px black, -1px 2px 3px white;*/
text-shadow: 2px 2px 3px black, 2px 2px 3px white;
}
</style>
</head>
<body>
<div class="box">hello</div>
</body>
</html>