Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法可以检测 Internet Explorer Mobile 7 中的方向变化?由于没有触发方向更改事件,我想唯一的方法是查看屏幕宽度是否发生了变化?
也许有人有更好的主意:)
假设您的意思是来自网页,而不是来自应用程序,那么没有办法直接检测方向变化,但正如您所建议的,您可以检测屏幕宽度变化。