9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macで表示中のHTMLを秒速でMobile Safariで確認する方法

Posted at

MacのブラウザでHTMLの確認をしているとき、ふとiPhoneで表示がどうなるか気になるときありますよね。
まず、おもむろにiPhone Simulatorを立ち上げます。

viewMobileSafari_02.png

つぎに、アドレスバーのfaviconをドラッグし、iPhone Simulatorにドロップします。

viewMobileSafari_03.png

すると、なんと、自動的にMobile Safariが立ち上がり、ドロップしたファイルを表示してくれます!

viewMobileSafari_04.png

補足

  • 他のファイルもドロップしてみましたが、画像やPDFでも同様にSafariで表示してくれます。
  • iPhone Simulatorは以下にあります。(要Xcodeインストール)
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?