源代码:
下载代码
点击运行
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind CSS 阴影效果展示</title> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="bg-gray-50 p-8"> <button class="p-5 text-white bg-red-500 active:bg-red-700 active:scale-95 transform transition"> 按下效果 </button> </body> </html>
运行结果: