-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
媒体查询中的 vw 转换 #30
Comments
不好意思,没理解您的意思 |
|
landscape: true, // 是否添加根据 landscapeWidth 生成的媒体查询条件 @media (orientation: landscape) |
插件可以设置媒体查询横屏下的视口宽度,您看下这个符合你的需求吗?上面的 |
@media (min-width: 1920px) and (max-height: 640px), (max-width: 1920px) and (min-width: 1920px) and (orientation: landscape) <style> .index-container .index-introduce[data-v-93195b7f], .index-container .index-menu[data-v-93195b7f] { height: 1848.889px; |
转换出来成这样了 |
没转成vw还是px |
转换的媒体查询代码,里面的单位是 px,这是因为匹配到媒体查询后,视图应该是保持不变的,也就是固定尺寸的。如果你看非媒体查询的代码,都已经转换为 vw 了。 |
我以为都会转换.... |
可以添加视口宽度吗??跟随横竖屏 更换时候宽度
The text was updated successfully, but these errors were encountered: