?? Tailwind CSS? ??? ???? ????? : ?? ??? ?? ??? ?? ????. ? ??? ? ??? ??? ???? ??? ????, ? ?? ???? ?? ?? ???? ?? ??? ???? ?? ??? ??? ?????. ?? ???? ?? ? ??? @apply
?????.
@apply
??
Tailwind? @apply
???? CSS? Tailwind ???? ???? ?? ?? ? ? ????. ??? ??? ?? ?? ??? ????? ???? ??? ???? ???? ????. ??? ? ??? ? ??? ?? ?? ????.
<code>/* Input */ .selector { @apply p-4; } /* Output */ .selector { padding: 1rem; }</code>
@apply
??? ?? Adam Wathan? ??? ??? ??? ??? ??? ??????. ??? ?? @apply
?? ???????? ?? ? ?? ?? ????? ?????.
@apply
Sass Mixin? ?????
Sass? ??? ???? ?? @apply
Sass Mixins? ???? ?????. Mixins? ???? ??? ??? ?? ??? ?? ? ? ????.
- Sass?
@mixin
???? Mixins? ????@include
???.
<code>// Sass Mixin @mixin some-mixin() { color: red; background: blue; } // Using the mixin .selector { @include some-mixin(); } /* Output */ .selector { color: red; background: blue; }</code>
Tailwind? @apply
? ??? ?????.
<code>/* Defining the utility */ @utility some-utility { color: red; background: blue; } /* Applying the utility */ .selector { @apply some-utility; } /* Output */ .selector { color: red; background: blue; }</code>
?? ?? ???? : Sass Mixins?? ??????
Tailwind Utilities? HTML?? ?? ???? ?? CSS ??? ???? ????.
<code>@utility some-utility { color: red; background: blue; }</code>
<code><div class="some-utility"> ...</div></code>
Sass Mixins? ?? ???? ?????.
<code>@mixin some-mixin() { color: red; background: blue; } .selector { @include some-mixin(); }</code> ...
??, Tailwind? ?? ? ??? ???? HTML ??? ?? ??? ?? ??? ?????? ?? ? ???? ??????.
?? ? : ?? ? ?? ????
???? ????? ??? ????? ??????.
<code>@utility horizontal { display: flex; flex-direction: row; gap: 1rem; } @utility vertical { display: flex; flex-direction: column; gap: 1rem; }</code>
?? ? ??? ?? ?????.
<code><div class="vertical sm:horizontal"> ...</div></code>
?? CSS?? @apply
?????.
<code>.your-layout { @apply vertical; @media (width >= 640px) { @apply horizontal; } }</code>
? ?? ?? ?? ?? ???? ?? ??? ??? ???? ??? ?????.
Sass Mixins? ???? ?? ?? ????? ??
Sass Mixins? ? ???? @if
? @for
??? ?? ?? ??? ?? ??? ?????.
<code>@mixin avatar($size, $circle: false) { width: $size; height: $size; @if $circle { border-radius: math.div($size, 2); } }</code>
?? ?? ????? ? ????? ????? ?? ????? ?? ??? ?? ? ?????. ??? CSS ??? ?? ?? CSS ???? ??? ??????.
? ?? ? : ??? ??? ??? ????
??? ??? ??? ????? @apply
? ?? ?????.
<code>@utility grid-simple { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap, 1rem); }</code>
?? ? ??? ?? ??? ???? ??????.
<code><div class="grid-simple --cols-2 sm:--cols-3"> ...</div></code>
?? @apply
?? :
<code>.your-layout { @apply grid-simple; @media (width >= 640px) { --cols: 3; } }</code>
??
Tailwind? @apply
????? ?? ?? ??????. @apply
???? ???? ?? ??? ??? ????? Tailwind? ???? ??? ? ????. ??? ????? ???? ??? ???? ?? ???? ??? ????? ?? ??? ??? ??? ? ????. ? ??? ???? ???? (?? Tailwind 3, Tailwind 4 ????? ? ???) ?? ???? ?????.
? ??? Tailwind ' s @apply ??? ???? ????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

CSS?? ????? ??? ? ?? ??? ????. 1. HTML ? CSS? ?? ??? ?????? ???? ?? ???? ?? ???? ??????. 2. ?? ??? ??? ?? ???? ???? ?? ?? ??? ?? ?? ??? ??????. 3. ??? ????? ???? JavaScript? ?? ???? ?????? ??? ?????. ? ?? ??? ??? ??? ????? ?? ??, ??, ??? ? ?? ???? ?? ?? ?? ??? ???? ?????.

CSS ???? ??? ? ??? ??? ????? ???? ??? ???? ???? ?? ?? ???? ????? ???????. 1. Flexbox ? ??? ??? ?? ???? ??? ??, ?? : ??? ?? ? ????? ??? ????. 2. Caniuse ?? ?? ?? ??? ??????. 3. -webkit-, -moz-, -ms-, -o- ? ?? ???? ???? ???? ?????. 4. AutoPrefixer? ???? ???? ???? ???? ?? ????. 5. ?? ????? ????? PostCSS? ???? BrowsersList? ??????. 6. ?? ? ???? ???? ?????. 7. Modernizr ?? ??? ??? ????? ??? ? ????. 8. ?? ????? ???? ?? ? ??? ????.

themaindifferencesbetweendisplay : ???, ??, andinline-blockinhtml/cssarelayoutbehavior, spaceusage ? stylingcontrol.1.inlineElementsFlowWithText, do n'tStartonnewlines, ingorewidth/height, andonlyapplyhorizontalpadding/margins —IdealforIneTeTexting

??? ?? ???? ???? ??? ??, ?? ??? ??? ? ? ????? ??? ??? ???? ???? ? ? ?? ? ? ????. 1. CSS ?? : ?? ??? ???? ???? ?? ??; 2. ????? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 3. ?? ??? ??? ??? ??? ?? ?? ???? ????????. 4. ??? ????? ??? ???? ?? ? ??? ??? ?? ??? ?? ?? ??? ????? ???? ?? ????.

CSS? ?? ?? ??? ??? ??? ???? ???? SVG? ???? ?? ???, ?? ????, ??? ?? ?? ??? ?? ???? ??????. ??? ??? ????. 1. ?, ??, ??? ?? ?? ??? ?? ??? ?????. 2. ?? ?? ? ??? ???? ??? ? ????. 3. ?????? ?? ?? ?? ?? ????? ???? ?? ??? ?? ? ? ????. 4. ???? ???? ??? ??? ??? ????? ?? ? ??? ????. ???? ???? ?? ?? ?? : ? (50pxatcenter) ? ??? ?? ?? : ??? (50%0%, 100 0%, 0%)? ?? ????. ????

CSS? ???? ?? ? ???? ???? ??? ?? ??? ?? ?? ?? ? ? ????. 1. Max width : 100% ? ?? : Auto? ???? ???? ??? ????? ???? ??? ??? ? ??????. 2. HTML? SRCSET ? ?? ??? ???? ?? ??? ??? ??? ??? ???????????. 3. ?? ?? ? ?? ??? ???? ??? ??? ? ?? ?????? ??????. ? ??? ?? ???? ?? ???? ???? ???? ????????.

?? ????? CSS ?? ??? ????? ?? ?? ??? ??, ?? ?? ?? ??, Flexbox ? ??? ???? ?? ?? ? ?? CSS ??? ????? ??? ???? ???? ?? ????? ??? ?????. 1. ?? ??? ??? ???? ????. ???? CSSRESET ?? NALLER.CSS? ???? ?? ???? ???? ????. 2. IE? ?? ??? ?? ?? ?? ??? ????. ?? ?? : ?? ? ???? ??? ??? ???? ?? ????. 3. Flexbox ? Grid? Edge Case ?? Old ???? ??? ?????. ? ?? ??? ? AutopRefixer ??; 4. ?? CSS ?? ??? ???? ????. Caniuse? ???? ?? ?????????.

CSS ??? ??? ?? ?? ?? ? ?? ? ?? ??? ?? ????. 1.px? ?? ??? ????? ?? ??? ??? ?? ??? ?????. 2.EM? ?? ????, ?? ?? ??? ??? ?? ?? ???? ??, REM? ?? ??? ???? ? ????? ??? ????? ?????. 3.VW/VH? ?? ? ???? ??? ??? ??? ??????? ?? ???? ?????? ???????. 4. ??? ?? ?? ? ??, ?? ?? ?? ? ??? ???? ???? ???????. ???? ??? ???? ??? ? ?? ??? ???? ? ????.
