源代码:
下载代码
点击运行
<!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="px-4 py-2 bg-green-500 text-white rounded hover:bg-green-600 hover:shadow-md transition-all"> 悬停按钮 </button> </body> </html>
运行结果: