CSS3效果:立體字和鏤空字


<!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>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM