I need to load some additional CSS to my page if its being viewed on a touch screen device like an ipad or iphone. Whats the easiest way to do this? Thanks
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
If you are using php, you can use this code to detect any mobile devices.
For iPad you can try:
I'd venture to guess that iPhone works the same way.
You can also use CSS media queries to produce something like this:
Easiest is arguably http://www.modernizr.com/ .