私はCordovaを使用してhtmlファイルで構成されるアプリを作っています。しかし、私は自分のアプリケーションをビルドするとき、それはCSSもJSも使いたくない。Cordovaを使用していない場合は、デバイスに組み込まれている場合は
<!doctype html>
<html lang="en">
<head>
<script>
function showDiv() {
document.getElementById('welcomeDiv').style.display = "block";
}
</script>
<meta charset="utf-8">
<title>InstaPlan</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="./main.css">
</head>
<body>
<input type="button" name="answer" value="Show Div" onclick="showDiv()" />
<div id="welcomeDiv" style="display:none;" class="answer_list" > WELCOME</div>
<div class="jumbotron" id="nbn">
<h1 id="sub">Onsdag 20/4 Uke 16:</h1>
<h1 id="mid">
<small>Gym MatteNorsk</small>
</h1>
</div>
<div class="jumbotron" id="nbn">
<h1 id="mid"><small>Lekser til Torsdag:</small></h1>
</div>
<div class="jumbotron" id="nbm">
<h1 id="sub">ayylmao ingen lekser</h1>
</div>
</body>
</html>
私はただのindex.htmlのようなWWWフォルダ内にある別のファイルからCSSを使用している、と私はまた、ブートストラップからいくつかのCSSを使用しています。それがそれに影響を与えるかどうかはわかりません。しかし、ヘッダータグにあるjavascriptも実行されていないようです。それはdivを表示したくありません。これは、CSSが動作していないために、style.displayを使用していることが原因ですか?
ありがとうございました
bootstrap.min.cssをローカルにプロジェクトフォルダにダウンロードして問題を絞り込むことができますか? – Gandhi