javascript - Website Theme for IPhone - What are The Basic Ingredients? -


Has anyone made a website theme for the iPhone?

Please tell me any suggestions or resources

Here's my theory: How to prepare a website for the iPhone

  1. For desktop monitors Make a website designed 320px (iPhone screen resolution) Try not to make any element bigger

  2. Create 2 style sheets, for a desktop monitor and the other for iPhone by default, the desktop version of the style sheet is called. IPhone style sheets will display items in such a way that they fit within 320px resolution.

  3. Create a javascript file that detects the screen size. If the screen size is less than 321 px, the style sheet is replaced by the iPhone version style sheet.

Liquid layouts work well when you portrait from Landscape And go back to the iPhone, text reflows


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -