monacaにて現在、iPhone端末向けのアプリを作成しており、HTML自体はWebサーバーにアップしており、jqueryでWebサーバーで取得したHTML(body部分のみ)を取得し、bodyタグに出力しているのですが、iPhone5iS端末で確認すると画面幅が大きく横スクロールが発生してしまう状況です。下記のmonacaのJSを利用してもうまくレスポンシブが効かない状態です。
monaca.viewport({width:"device-width"});
現状、その再現が発生しているHTMLは下記となりますが、解決方法が解らず、ご教授可能な方がおりましたら、教えて頂けると幸いです。
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta http-equiv="Content-Security-Policy" content="default-src * data:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'"> <script type="text/javascript" src="components/loader.js"></script> <script type="text/javascript" src="components/monacac-jquery/jquery.js"></script> <script type="text/javascript" src="components/monaca.viewport.js"></script> <link rel="stylesheet" href="components/loader.css"> <link rel="stylesheet" href="css/style.css"> <style> img { max-width: 100% !important; height: auto; } html { width: 100% !important; } body { width: 100% !important; overflow-x: hidden; overflow-y: auto; margin: 0; padding: 0; } </style> <script> function get_page(next_url){ // 外部のWebサーバーにあるHTMLを取得してbodyに出力する var url = "https://hogehoge.com"; $('body').load(url, function(response, status, xhr){ } } </script> <body class="hogehoge"> </body> </html>

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/08/09 13:53