質問編集履歴

2

コード修正

2018/10/23 08:20

投稿

Rand
Rand

スコア18

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  background-image: image-url("baseball.jpg");
20
20
 
21
- background-repeat:no-repeat;
21
+ background-repeat: no-repeat;
22
22
 
23
23
  background-position: center;
24
24
 

1

コード変更

2018/10/23 08:20

投稿

Rand
Rand

スコア18

test CHANGED
File without changes
test CHANGED
@@ -12,20 +12,20 @@
12
12
 
13
13
  ```css
14
14
 
15
+ body {
16
+
15
17
  padding-top: 60px;
16
18
 
17
- background-image: image-url("画像名.jpg");
19
+ background-image: image-url("baseball.jpg");
18
20
 
19
- background-repeat:no-repeat; //背景を一回だけ表示する
21
+ background-repeat:no-repeat;
22
+
23
+ background-position: center;
20
24
 
21
25
  background-attachment: fixed;
22
26
 
23
- background-size: 100% 40px;
27
+  background-size: 100% 800px;
24
28
 
25
- -webkit-background-size: 100% 40px; /* Safari,Google Chrome用 */
26
-
27
- -moz-background-size: 100% 40px; /* Firefox用 */
28
-
29
- -o-background-size: 100% 40px; /* Opera用 */
29
+ }
30
30
 
31
31
  ```