tailwind布局实现资料卡片效果代码
代码语言:html
所属分类:布局界面
代码描述:tailwind布局实现资料卡片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss_3.3.3.js"></script> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.5.1.css"> </head> <body translate="no"> <div class="overflow-hidden h-screen flex justify-center items-center bg-indigo-200 relative -z-20"> <div class="px-4 py-5 sm:p-6 -rotate-12 relative left-20 top-20 -z-10"> <!-- Card Markup Starts --> <div class="w-64 h-96 bg-pink-300 relative flex flex-col items-center shadow-2xl"> <div class="h-24 w-24 bg-blue-300 absolute -top-12 left-20 rounded-full ring-4 ring-gray-700 ring-inset flex justify-center items-center"> <i class="text-5xl fa-solid fa-user-secret"></i> </div> <div class="w-full flex flex-1 justify-center items-center rounded-t-lg ring-4 ring-gray-700"> <div class="text-center"> <p class="font-bold text-2xl"> Louanne Johnson </p> <p class="text-md opacity-75"> @LouanneJohnson </p> </div> </div> <div class="w-full flex flex-1 bg-white w-full rounded-b-lg ring-4 ring-gray-700 items-center justify-center"> <ul class="space-y-4 font-bold text-xl"> <li> <span class="text-blue-500 fa-regular mr-2"> <i class="fa fa-bookmark"></i> </span> Lesson 1 </li> <li> <span class="text-red-500 fa-regular mr-2"> <i class="fa fa-bookmark"></i> </span>Lesson 2 </li> <li> <span class="text-indigo-500 fa-regular mr-2"> <i class="fa fa-bookmark"></i> </span>Lesson 3 </li> </ul> </div> </div> <!-- Card Markup Ends --> </div> <div class="px-4 py-5 sm:p-6"> <!-- Card Markup Starts --> <div class="w-64 h-96 bg-amber-300 relative flex flex-col items-center shadow-2xl"> <div class="h-24 w-24 bg-teal-400 absolute -top-12 left-20 rounded-full ring-4 ring-gray-700 ring-inset flex justify-center items-center"> <i class="text-5xl fa-solid fa-user-nurse"></i> </div> <div class="w-full flex flex-1 justify-center items-center rounded-t-lg ring-4 ring-gray-700"> <div class="text-cent.........完整代码请登录后点击上方下载按钮下载查看
网友评论0