【发布时间】:2021-07-15 09:56:31
【问题描述】:
我尝试按照tailwindcss not using my custom class inside breakpoints 所说的去做,但它仍然对我不起作用。
这是我的代码:
<template>
<div class="img-box-md overflow-hidden rounded-sm lg:img-box-lg">
...
</div>
<template>
......
<style lang="postcss" scoped>
@responsive {
.img-box-lg {
height: 9.2vw;
}
}
</style>
我尝试使用@responsive 使课程具有响应性,但未能发现它可以在大宽度的控制台中使用
【问题讨论】:
-
尝试用
@variants responsive替换@responsive。
标签: tailwind-css