iPad Safari CSS/Javascript
我有 2 个问题;
为了修复 iPad Safari 问题,我们是否只需要更新 CSS...我的意思是,是否存在任何可能需要更新 JS 才能修复 iPad 的问题。
同样通过JS,用户代理检查是唯一的选项还是CSS中使用的@media也可以在JS中使用,作为if..else条件?
I have 2 questions;
For fixing iPad Safari issues, do we only need to update in the CSS...I mean can there be any kind of issue which might require a JS update as well to fix for iPad.
Also through JS, is user-agent check the only option OR is @media which is used in CSS can be used in JS as well, as an if..else condition?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于您想要做什么,但是 Mobile Safari 有一个非常好的渲染引擎,我不知道您需要在哪里使用 JS 调整 CSS 才能使其工作。
是的,您可以使用以下语法仅定位 iPad:
“
更多信息
Depends what you're trying to do, but Mobile Safari has a very good rendering engine I don't see where you would need to tweak CSS with JS to make it work.
Yes you can target just the iPad with the following syntax:
"
More here