RE: RE: Nuxt开发指南
You are viewing a single comment's thread from:

RE: Nuxt开发指南

Words
0
Reading
0 min
Listen
Play
7M
/* //常用语句 */
bg-purple-100  
text-purple-100 
text-center    
align-middle  
!w-[80%]    //width: 80% !important;
shadow-sm  
cursor-pointer 
outline-none  
font-italic  

hover:bg-purple-500 
focus:bg-purple-900  
flex justify-center items-center  
flex justify-between  
min-h-sceen / min-h-100vh 
min-h-80vh 
h-80vh / calc(100vh - 10px)
w-full / w-100vw 

w-[95%] lg:w-[85%] ~= w-95vw  lg:w-85vw

线
<div flex justify-center items-center><p m-l-4 text-4></p> 
</
div> <div flex ><div ml-auto></div></div> <div flex ><div ml-auto px-2 hover:bg-red>X</div></div> //删除按键 m-auto / mx-auto ml-auto mr-auto px-4 / py-4 /padding: 1rem; px-[20px] pt-4 1rem(padding-top: 1rem;) mx-4 / my-4 / inline block inline-block imginput inlinewidthheight blockdisplay:flex inline-blockwidthheight : display: flex; align-items: center; justify-content: center; animate-fade-in <div border-t-dashed border-1></div> 线线 /* flex布局,两端对齐 */ <div flex mb-2 justify-between> <p mr-2></p> <div w-65vw lg:w-42vw> xxx </div> </div> /* 响应式 */ 5 smmdlgxl2xl CSS sm 640px @media (min-width: 640px) { ... } md 768px @media (min-width: 768px) { ... } lg 1024px @media (min-width: 1024px) { ... } xl 1280px @media (min-width: 1280px) { ... } 2xl 1536px @media (min-width: 1536px) { ... } /* 定位手机屏幕 */ 使 sm: sm: sm xl 使 <div class="text-center sm:text-left"></div> // flex-1 flex justify-end lg:hidden //手机端时显示,屏幕变大时隐藏 relative hidden lg:flex items-center ml-auto //在电脑端的样式(在手机端时隐藏) hidden lg:flex items-center px-4 //在电脑端的样式(在手机端时隐藏) hidden lg:block ml-auto //在电脑端的样式(在手机端时隐藏) ml-auto lg:hidden//在手机端时居中,电脑端隐藏
@lemooljiang: /* //常用语句 */ | Ecency