首页 > 代码库 > 立体字和镂空字

立体字和镂空字

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.total {
margin: 100px auto;
width: 1150px;
font-size: 100px;
}
.total div:nth-child(1) {
color: blue;
text-shadow:9px 9px 9px orange,3px 3px 3px red,5px 5px 5px green,7px 7px 7px grey;
}
.total div:nth-child(2) {
-webkit-text-stroke: 2px blue;
color: transparent;
}
</style>
</head>
<body>
<div class="total">
<div class="cube">钱成:前端工程师(立体字)</div>
<div class="hollow">钱成:前端工程师(镂空字)</div>
</div>
</body>
</html>

立体字和镂空字