Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

สร้างข้อความสีขาวพร้อมเงาสีดำด้วย CSS

ใช้คุณสมบัติ text-shadow เพื่อสร้างข้อความสีขาวพร้อมเงาสีดำ

ตัวอย่าง

<!DOCTYPE html> <html>    <head>       <style>          h1 {             color: white;             text-shadow: 3px 3px 3px #000000;          }       </style>    </head>    <body>       <h1>Heading One</h1>       <p>Above heading has a text shadow effect.<p>    </body> </html>