<button class="outline outline-green-500">OlColor Green 500</button> 盒子阴影颜色:shadow-[container] shadow-[color]-[shade(/opacity)] shadow-[container]:添加阴影,container 表示阴影最大宽度,取值如下 containerwidth sm 640px md 768px lg 1024px xl 1280px 2xl 1536px (/opacity):透明度,默认 100...
hidden flex items-center"> <button onclick="toggleMenu()" class="px-3 py-2 rounded text-gray-500 focus:outline-none focus:text-gray-900"> <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-...
<button class="absolute top-0 bottom-0 right-0 flex items-center justify-center p-4"> <svg class="h-8 w-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/> </svg...
<div className="border-4 bg-black text-white hover:bg-blue-600 hover:text-fuchsia-500 size-40 text-center "> twd css hover </div> <button class="bg-sky-500 active:bg-pink-500">button</button> <input type="text" class="px-2 outline focus:outline-2 focus:outline-sky-500" ...
onclick="switchImage('/product-main.jpg')" > <img src="/product-main.jpg" alt="产品缩略图" class="w-full h-full object-center object-cover" > </button> <button class="relative aspect-w-1 aspect-h-1 rounded-md overflow-hidden hover:ring-2 hover:ring-indigo-500 hover:ring-offset-...
Premium Banner Around Button Works in most browsers, automatically centers text. Be sure to fiddle around with the negative top and right margins to get the correct position for the banner (this also depends on the width and height of the ribbon). ...
-- 密码可见性切换 --> <button type="button" class="absolute inset-y-0 right-0 pr-3 flex items-center" onclick="togglePasswordVisibility(this)" > <svg class="h-5 w-5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-...
Style elements on hover, focus, and active using the hover, focus, and active variants:Try interacting with this button to see the hover, focus, and active states Save changes <button class="bg-violet-500 hover:bg-violet-600 focus:outline-2 focus:outline-offset-2 focus:outline-violet-500 ...
Media on right PreviewGet the code → Basic responsive PreviewGet the code → Wide responsive PreviewGet the code → Nested PreviewGet the code →Marketing Hero Sections Feature Sections Pricing Sections Header Sections Newsletter Sections Testimonials Team Sections Content Sections Logo Clouds FAQs Foote...
<button class="absolute top-4 right-4 text-white" onclick="closeLightbox()"> <svg class="h-6 w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> ...