我正在做一个移动友好的样式表我的一个网页。有一个简单的方法,使其显示的样式表到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/ http://www.phonegap.com/ http://www.sencha.com/products/touch/ http://www.appcelerator.com/ http://www.jquerymobile.com/ http://www.jqtouch.com/有一些让你开始:)
希望这有助于。