CSS独家为iPhone / Android的 [英] Exclusive CSS for iPhone/Android

查看:99
本文介绍了CSS独家为iPhone / Android的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个移动友好的样式表我的一个网页。有一个简单的方法,使其显示的样式表到iPhone / Android用户?或者,我要拉用户,代理商和弄明白的方式 - 我怎么做,

I'm making a mobile-friendly stylesheet for a page of mine. Is there a simple way to make it show that stylesheet to iPhone/Android users? Or do I have to pull the user-agents and figure it out that way - and how do I do that?

另外 - ?任何工具,使这种Web开发更容易

Also - any tools to make this sort of web dev easier?

推荐答案

您可以做这样的事情,如果你的样式是一样的iOS / Android的。

You could do something like this, if your stylesheet is the same for iOS/android.

<链接相对=样式媒体=只屏(最大设备宽度:480px)的href =CSS / mobile.css类型=文本/ CSS/ >

但是,如果你想检测,如果它是的iOS或Android,那么你就需要做检测。

But if you're trying to detect if it's the iOS OR Android, then you'll need to do detection.

在使移动更容易开发方面,有一吨的东西:

In terms of making mobile dev easier, there's a ton of stuff:

  • http://www.phonegap.com/
  • http://www.sencha.com/products/touch/
  • http://www.appcelerator.com/
  • http://www.jquerymobile.com/
  • http://www.jqtouch.com/

有一些让你开始:)

希望这有助于。

这篇关于CSS独家为iPhone / Android的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆