###前提・実現したいこと
開発中のBootstrapを使ったWebアプリケーションをスマホで閲覧したい
###発生している問題・エラーメッセージ
iphoneで開発中のWebアプリケーションをSafariとGoogleChromeで開くと、
Bootstrapがされない(Androidでは適応される)
###該当のソースコード
JSP
1<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> 2<!DOCTYPE html> 3<html> 4 <head> 5 <!-- Latest compiled and minified CSS --> 6 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> 7 <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> 8 <!-- Latest compiled and minified JavaScript --> 9 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> 10 <!-- CSS適用 --> 11 <link rel="stylesheet" type="text/css" href="/css/reset.css"> 12 <link rel="stylesheet" type="text/css" href="/css/login.css"> 13 <title>login</title> 14 </head> 15 <body> 16 <div class="container"> 17 <h1 class="bg-primary">test</h1><br><br><br><br><br><br><br> 18 <div class="row"> 19 <div class="form-horizontal content col-xs-10 col-sm-12 col-md-6"> 20 <div id= "form-login" > 21 <form method="post" action="/Home"> 22 <div class="form-group"> 23 <input type="text" id="id" class=”form-control col-xs-6 col-sm-6 col-md-6” name="id" placeholder="id"> 24 </div> 25 <div class="form-group"> 26 <input type="password" id="password" class=”form-control col-xs-6 col-sm-6 col-md-6” name="password" placeholder="password"> 27 </div> 28 <div class="form-group"> 29 <input type="submit" id="authentication" class="btn btn-success" name="authentication" value="Login"> 30 </div> 31 </form> 32 </div> 33 </div> 34 </div> 35 </div> 36 </body> 37</html>
###試したこと
リセットCSSの導入
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/07 02:53
退会済みユーザー
2017/11/07 02:58
2017/11/07 04:19