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

質問編集履歴

2

コード修正

2018/10/23 08:20

投稿

Rand
Rand

スコア18

title CHANGED
File without changes
body CHANGED
@@ -8,7 +8,7 @@
8
8
  body {
9
9
  padding-top: 60px;
10
10
  background-image: image-url("baseball.jpg");
11
- background-repeat:no-repeat;
11
+ background-repeat: no-repeat;
12
12
  background-position: center;
13
13
  background-attachment: fixed;
14
14
   background-size: 100% 800px;

1

コード変更

2018/10/23 08:20

投稿

Rand
Rand

スコア18

title CHANGED
File without changes
body CHANGED
@@ -5,12 +5,12 @@
5
5
  ご教授の程宜しくお願い致します。
6
6
  以下現在のコードになります。
7
7
  ```css
8
+ body {
8
9
  padding-top: 60px;
9
- background-image: image-url("画像名.jpg");
10
+ background-image: image-url("baseball.jpg");
10
- background-repeat:no-repeat; //背景を一回だけ表示する
11
+ background-repeat:no-repeat;
12
+ background-position: center;
11
13
  background-attachment: fixed;
12
- background-size: 100% 40px;
14
+  background-size: 100% 800px;
13
- -webkit-background-size: 100% 40px; /* Safari,Google Chrome用 */
14
- -moz-background-size: 100% 40px; /* Firefox用 */
15
- -o-background-size: 100% 40px; /* Opera用 */
15
+ }
16
16
  ```