文字凹凸效果
阿新 • • 發佈:2019-01-03
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <style> body { background-color: #ccc; } div{ color: #ccc; font: 700 80px "微軟雅黑"; } div:first-child { text-shadow: 1px 1px 1px #000,-1px -1px 1px #fff; /*凸*/ } div:nth-child(2) { text-shadow: -1px -1px 1px #000,-1px -1px 1px #fff; /* 凹*/ } </style> </head> <body> <div>我是凸起的文字</div> <div>我是凹下的文字</div> </body> </html>