Raised sunken text effects

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<style type="text/css">
		body {
			margin: 0;
			background-color: #999;
		}
		div {
			text-align: center;
			font-size: 50px;
			color: #999;
		}
		.up {
			text-shadow: 1px 1px 1px #000, -1px -1px 1px #fff;
		}
		.down {
			text-shadow: 1px 1px 1px #fff, -1px -1px 1px #000;
		}
	</style>
</head>
<body>
	<div class="up">凸起文字</div>
	<div class="down">凹下文字</div>
</body>
</html>复制代码

effect:



Guess you like

Origin blog.csdn.net/weixin_34378969/article/details/91394388