tailwind实现自适应响应式时间线效果代码
代码语言:html
所属分类:响应式
代码描述:tailwind实现自适应响应式时间线效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/tailwind.2.2.7.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.min.css"> </head> <body class="bg-gray-50"> <div class="p-4 mt-4"> <h1 class="text-4xl text-center font-semibold mb-6">Package status</h1> <div class="container"> <div class="flex flex-col md:grid grid-cols-12 text-gray-50"> <div class="flex md:contents"> <div class="col-start-2 col-end-4 mr-10 md:mx-auto relative"> <div class="h-full w-6 flex items-center justify-center"> <div class="h-full w-1 bg-green-500 pointer-events-none"></div> </div> <div class="w-6 h-6 absolute top-1/2 -mt-3 rounded-full bg-green-500 shadow text-center"> <i class="fas fa-check-circle text-white"></i> </div> </div> <div class="bg-green-500 col-start-4 col-end-12 p-4 rounded-xl my-4 mr-auto shadow-md w-full"> <h3 class="font-semibold text-lg mb-1">Package Booked</h3> <p class="leading-tight text-justify w-full"> 21 July 2021, 04:30 PM </p> </div> </div> <div class="flex md:contents"> <div class="col-start-2 col-end-4 mr-10 md:mx-auto relative"> <div class="h-full w-6 flex items-center justify-center"> <div class="h-full w-1 bg-green-500 pointer-events-none"></div> </div> <div class="w-6 h-6 absolute top-1/2 -mt-3 rounded-full bg-green-500 shadow text-center"> <i class="fas fa-check-circle text-white"></i> </div> </div> <div class="bg-green-500 col-start-4 col-end-12 p-4 rounded-xl my-4 mr-auto shadow-md w-full"> .........完整代码请登录后点击上方下载按钮下载查看
网友评论0