效果展示:
代码展示:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
background-color: #ccc;
}
div {
color: #ccc;
font: 700 100px "微软雅黑";
}
div:first-child {
/*text-shadow: 水平位置 垂直位置 模糊距离 阴影颜色;*/
text-shadow:1px 1px 1px #000, -1px -1px 1px #fff;
}
div:last-child {
text-shadow: -1px -1px 1px #000, 1px 1px 1px #fff;
}
</style>
</head>
<body>
<div>我是凸起来的文字</div>
<div>我是凹下去的文字</div>
</body>
</html>
---------------------
作者:Tonglanlinling
来源:CSDN
原文:https://blog.csdn.net/Tonglanlinling/article/details/88380465
版权声明:本文为博主原创文章,转载请附上博文链接