Time for action—switching our User Agent
Ok, so let's fool desktop Safari into behaving like Safari on the iPhone. Perform the following steps for doing so:
1. Let's start by opening the Safari browser for Mac. We will change the User Agent using an option on the Develop menu.
Note
If you don't already have the Safari Develop menu activated, you can do so via Safari's Preferences menu. For instructions, see http://developer.apple.com/library/safari/#documentation/appleapplications/Conceptual/Safari_Developer_Guide/2SafariDeveloperTools/SafariDeveloperTools.html.
2. We will click on Develop and then on User Agent to see a list of possible User Agents, as shown in the following screenshot:
3. We will select the User Agent we want to make use of—in this case, Safari iOS 4.3.3—iPhone.
4. If we resize the browser window, the site will appear as it would on an iPhone.
What just happened?
We told the desktop Safari browser to use the mobile Safari User Agent, so that the site would display as it would...