teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

「class = "btn-primary"」を使用し反映されない旨を追記。

2021/09/27 01:29

投稿

nunonion
nunonion

スコア1

title CHANGED
@@ -1,1 +1,1 @@
1
- eclipsでのBootstrap使用のためのリンク文のエラーについて
1
+ EclipseでのBootstrap使用のためのリンク文のエラーについて
body CHANGED
@@ -1,9 +1,11 @@
1
1
  ### 前提・実現したいこと
2
2
  プログラミング初心者です。
3
- eclipsを用いてHTMLとCSSの勉強をしています。
3
+ Eclipseを用いてHTMLとCSSの勉強をしています。
4
4
  現在、Bootstrapを使用するために、HTMLのheadにリンクをコピペして記述したのですが、integrityとcrossoriginの箇所が、
5
5
  「属性名 (integrity) が未定義です。」と表示され、Bootstrapのclassが適用されない状態になっています。
6
6
 
7
+ また、「class = "btn-primary"」を使用することでボタンのビジュアルが変わるイメージでいたのですが、反映されていない状態です。
8
+
7
9
  これを解決する方法をお教えください。
8
10
  宜しくお願いします。
9
11
 

1

Bootstrap使用部分を追記しました。

2021/09/27 01:29

投稿

nunonion
nunonion

スコア1

title CHANGED
File without changes
body CHANGED
@@ -20,6 +20,24 @@
20
20
 
21
21
 
22
22
  </head>
23
+
24
+ <head>
25
+
26
+ <meta charset="UTF-8">
27
+ <title>Insert title here</title>
28
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
29
+ integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
30
+ crossorigin="anonymous">
31
+
32
+
33
+ </head>
34
+ <body>
35
+
36
+ <input type= "text" style= "width:200px;">
37
+ <input type = "button" class = "btn-primary" value = "ボタン">
38
+
39
+ </body>
40
+
23
41
  ```
24
42
 
25
43
  ### 該当のソースコード