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
安卓端(手机/平板)无法触发mdui-col-md-x(及以上) #165
Comments
|
@zdhxiong 已经换成2k屏手机而且横屏了,依然无法触发。测试了一下,sm好像也触发不了了。现在怀疑是手机浏览器渲染策略的问题。 |
这跟手机分辨率无关,你可以用 window.innerWidth 获取宽度,这才是 CSS 中使用的宽度。 |
@zdhxiong Android部分ROM中移除了对window.innerWidth的支持,或者得到的数值不正确。可能这就是造成这个现象的原因吧。我尝试手动设置该值试试。谢谢作者。 |
window.innerWidth 是个 JS 的只读属性,任何 ROM 都无法移除它,你也没法设置这个值。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这是一个(可多选)
如何操作
在安卓端打开在电脑端编写测试运行正常的页面,任意切换横竖屏以及分辨率,始终无法触发mdui-col-xx-x变换
预期结果
预期与PC端响应式结果一致
实际结果
并无响应式动作发生~~~
The text was updated successfully, but these errors were encountered: