2017-03-05 3 views
-1

ブートストラップには新しく、ブートストラップサイトから基本コードをコピーして実行すると完全に実行され、「Hello、World」が表示されますが、彼は "世界は" それはまだ続いて "世界hello" を示しているために "Hello World" のように変更するコードブートストラップ:ウェブブラウザに表示されていない基本コードへの変更

<!DOCTYPE html> 
 
    <html lang = "en"> 
 
     
 
     <head> 
 
      <meta charset = "utf-8"> 
 
      <meta http-equiv = "X-UA-Compatible" content = "IE = edge"> 
 
      <meta name = "viewport" content = "width = device-width, initial-scale = 1"> 
 
      
 
      <title>Bootstrap 101 Template</title> 
 
      
 
      <!-- Bootstrap --> 
 
      <link href = "//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel = "stylesheet"> 
 
      
 
      <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> 
 
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> 
 
      
 
      <!--[if lt IE 9]> 
 
      <script src = "https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> 
 
      <script src = "https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 
 
      <![endif]--> 
 
      
 
     </head> 
 
     
 
     <body> 
 
      <h1>Hello, world!</h1> 
 
      
 
      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
 
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
 
      
 
      <!-- Include all compiled plugins (below), or include individual files as needed --> 
 
      <script src = "//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> 
 
      
 
     </body> 
 
    </html>

+0

キャッシュをクリアするにはCtrl + F5を押してください。 –

+0

が動作しません@GhanshyamSingh – SFAH

答えて

1

問題ありませんが、完璧に働いて..います。..

印刷エル。世界

<!DOCTYPE html> 
 
    <html lang = "en"> 
 
     
 
     <head> 
 
      <meta charset = "utf-8"> 
 
      <meta http-equiv = "X-UA-Compatible" content = "IE = edge"> 
 
      <meta name = "viewport" content = "width = device-width, initial-scale = 1"> 
 
      
 
      <title>Bootstrap 101 Template</title> 
 
      
 
      <!-- Bootstrap --> 
 
      <link href = "//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel = "stylesheet"> 
 
      
 
      <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> 
 
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> 
 
      
 
      <!--[if lt IE 9]> 
 
      <script src = "https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> 
 
      <script src = "https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 
 
      <![endif]--> 
 
      
 
     </head> 
 
     
 
     <body> 
 
      <h1>Hello, world!</h1> 
 
      
 
      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
 
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
 
      
 
      <!-- Include all compiled plugins (below), or include individual files as needed --> 
 
      <script src = "//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> 
 
      
 
     </body> 
 
    </html>

印刷世界

<!DOCTYPE html> 
 
    <html lang = "en"> 
 
     
 
     <head> 
 
      <meta charset = "utf-8"> 
 
      <meta http-equiv = "X-UA-Compatible" content = "IE = edge"> 
 
      <meta name = "viewport" content = "width = device-width, initial-scale = 1"> 
 
      
 
      <title>Bootstrap 101 Template</title> 
 
      
 
      <!-- Bootstrap --> 
 
      <link href = "//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel = "stylesheet"> 
 
      
 
      <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> 
 
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> 
 
      
 
      <!--[if lt IE 9]> 
 
      <script src = "https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> 
 
      <script src = "https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 
 
      <![endif]--> 
 
      
 
     </head> 
 
     
 
     <body> 
 
      <h1>world!</h1> 
 
      
 
      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
 
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
 
      
 
      <!-- Include all compiled plugins (below), or include individual files as needed --> 
 
      <script src = "//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> 
 
      
 
     </body> 
 
    </html>

ファイルを適切に保存されていません。 worldのみを印刷しようとしています。ファイルの名前を変更して実行しようとします。

別のものが可能ですあなたのブラウザはファイルをキャッシュしてキャッシュをクリアしています。

コードに問題はありません。

+0

ファイルを別の名前で保存して実行すると、完璧に動作しますが、なぜこれが起こったのですか?私は何かを変更したいので、別の名前でファイルを保存する必要がありますか? :| – SFAH

+0

あなたのブラウザが以前の名前でファイルをキャッシュしていて、キャッシュからロードしているため...ブラウザのキャッシュをクリア...他のブラウザから実行しようとすると、完全に動作することがわかります。 – neophyte

+0

これをheadタグ ''で使用してください。あなたのブラウザはtryをキャッシュしなくなります。 – neophyte

関連する問題