-
Notifications
You must be signed in to change notification settings - Fork 405
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
有办法大于一定宽度不继续缩放了么? #130
Comments
遇到同样的问题,解决了么? |
我不用vw了,改成自动转换rem了。。。 |
同求,希望有个maxWidth |
好像只能寫兩套代碼,這個沒辦法自適應 |
Closed
我是配置媒体查询不做 px-vw 的转化,然后把写好的css复制一份到媒体查询中 |
可以通过媒体查询或者 css 函数限制最大宽度,这样就没有“大屏大字”的问题了。 可以试下我这两天写的 postcss 插件, npm install postcss postcss-mobile-forever --save-dev |
内嵌一次就行了 <title></title> <iframe id="iframe" src="./index.html" frameborder="0"></iframe> <style> *{ margin: 0; padding: 0; box-sizing: border-box; } body{ background: #eee; } #iframe{ background: #fff; display: block; width: 768px; height: 100vh; margin: 0 auto; } </style> |
<iframe id="iframe" src="./index.html" frameborder="0"></iframe> 嵌套一下,然后给iframe设置宽度,因为单位是vw,index的100vw就是iframe的宽度 |
求官方解决一手, 确实有用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
比如正常1400px宽度适配,小于1400px进行缩放,但是大于1400px的屏幕没必要放大,这样可以多显示一些内容。
The text was updated successfully, but these errors were encountered: