开发者

Tailwind, opposite of visible to show and hide elements on mobile?

开发者 https://www.devze.com 2022-12-07 20:18 出处:网络
I have the following snippet: <div> <table className="hidden sm:block w-full"> ...

I have the following snippet:

        <div>
            <table className="hidden sm:block w-full">
...

but when I expand the screen, the table doesn't take up the full width as the internet is suggesting me.

With Co开发者_C百科de Above

Tailwind, opposite of visible to show and hide elements on mobile?

Desired Result

Tailwind, opposite of visible to show and hide elements on mobile?

What is the opposite of visible? Everyone suggests block, but that seems like an odd default to me.


It looks like

 <table className="hidden sm:table w-full">

is the best approach here.

0

精彩评论

暂无评论...
验证码 换一张
取 消