是否有适当的方法可以使用Vuetify进行响应式设计?

发布于 2025-02-06 03:06:05 字数 179 浏览 3 评论 0 原文

由于我是新手设计的,因此在parwindcs中有XS,SM,MD,LG,XL等类。这些类对于做出设计响应非常有用。 但是,是否有适当的方法在vurtify中做出响应式网络, 我读过vurtify dos,

”同样,但无法理解它的使用,请提供适当的资源或有关我如何使用Vurtify进行响应设计而不是网格系统的信息。 提前致谢。

since I am new in designing, in tailwindcss there are classes like XS, SM, MD, LG, XL etc. these classes are very useful for making the design response.
but is there a proper way to make a responsive web in VURTIFY,
I have read VURTIFY dos,
https://vuetifyjs.com/en/styles/spacing/

it defines some break points too, but can't understand it uses, please provide a proper resource or information about how I do use VURTIFY for responsive design instead of it grid system.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风挽心 2025-02-13 03:06:05

Vuetify具有响应式设计的完整类列表。根据 vuetify documentation ,您可以使用 D- } - {value} 以在不同的断点上设置显示,例如,您可以使用 d-lg-none class set display display:none for element仅在大型设备上或使用 d-sm-flex set 显示:flex 仅在小型设备上。

您还可以使用 hidden- {brekablepoint} - {condition} 在某些显示中隐藏一个元素在很小的设备上,或使用隐藏的md-and-up 将元素隐藏在中等设备或更大的设备上。

此外,您可以使用 brekakepoint服务对象/a>在JavaScript中,您只能在小设备上显示一个元素,等等。

<h1 v-if="$vuetify.breakpoint.smOnly">
   Hello world!
</h1>

Vuetify has a complete class list for responsive design. According to Vuetify documentation, You can use classes like d-{breakpoint}-{value} to set display on different breakpoints, for example, You can use d-lg-none class to set display: none for an element only on large devices or use d-sm-flex class to set display: flex only on small devices.

You can also use hidden-{breakpoint}-{condition} to hide an element in some displays, for example, You can use hidden-xs-only to hide an element on very small devices or use hidden-md-and-up to hide an element on medium devices or larger.

Furthermore, You can use the Breakpoint service object in javascript, for example, you can show an element only on small devices and etc.

<h1 v-if="$vuetify.breakpoint.smOnly">
   Hello world!
</h1>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文