Clear

    Utilities for controlling the wrapping of content around an element.

    Use to position an element below any preceding left-floated elements.

    Clearing right-floated elements

    Clear - 图2

    1. <img class="float-left ..." src="path/to/image.jpg">
    2. <img class="float-right ..." src="path/to/image.jpg">

    Use to position an element below all preceding floated elements.

    Disabling applied clears

    Clear - 图4

    1. <img class="float-left ..." src="path/to/image.jpg">
    2. <img class="float-right ..." src="path/to/image.jpg">
    3. <p class="clear-none ...">Maybe we can live without libraries...</p>

    Tailwind lets you conditionally apply utility classes in different states using variant modifiers. For example, use to only apply the clear-none utility on hover.

    For a complete list of all available state modifiers, check out the Hover, Focus, & Other States documentation.

    Breakpoints and media queries

    1. <p class="clear-left md:clear-none">

    To learn more, check out the documentation on Responsive Design, and other media query modifiers.