-
317 votesanswersviews
检测设备是否为iOS
我想知道是否可以检测浏览器是否在iOS上运行,类似于使用Modernizr进行特征检测的方式(尽管这显然是设备检测而不是功能检测) . 通常我更喜欢功能检测,但我需要找出设备是否是iOS,因为他们根据这个问题处理视频的方式YouTube API not working with iPad / iPhone / non-Flash device -
3 votesanswersviews
带有png回退服务器端的内联svg
我想在我的网站上使用内联svg代码(即 <svg> 标签而不是 <img src="example.svg" /> ),并为browsers < IE9 and < Android 3使用png后备 . 遵循Responsive Design with Server Side components的概念,我想专门针对那些使用PHP的浏览器进行... -
9 votesanswersviews
功能检测支持DOMContentLoaded事件
是否有可能检测到对DOMContentLoaded事件的支持? 方法's like Kangax'此解决方案无效,因为 DOMContentLoaded 未作为任何元素的属性公开:Detecting event support without browser sniffing