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

回答編集履歴

5

表現を微修正

2019/10/03 09:43

投稿

take-t.t.
take-t.t.

スコア360

answer CHANGED
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .yellow {
7
- order: 1; //1以上の数
7
+ order: 1; /* 1以上の数 */
8
8
  }
9
9
  ```
10
10
  参考:flexboxチートシート
@@ -13,5 +13,5 @@
13
13
  追記:すいません、回答が間違っていたので修正です。
14
14
  orderの初期値は0なので、1以上であればとりあえず右端に寄ります。
15
15
  orderには負の数も適用でき、-1以下を指定すると逆に左に寄るのが分かると思います。
16
- つまり**orderの数字がいものからいものにかけて**左から順番に並んでいきます。
16
+ つまり**orderの数字が小さいものから大きいものにかけて**左から順番に並んでいきます。
17
17
  ・例 → [https://jsfiddle.net/35cowkja/](https://jsfiddle.net/35cowkja/)

4

文章を分かりやすく編集

2019/10/03 09:43

投稿

take-t.t.
take-t.t.

スコア360

answer CHANGED
@@ -7,10 +7,11 @@
7
7
  order: 1; //1以上の数
8
8
  }
9
9
  ```
10
- flexboxチートシート
10
+ 参考:flexboxチートシート
11
11
  [https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet](https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet)
12
12
 
13
13
  追記:すいません、回答が間違っていたので修正です。
14
14
  orderの初期値は0なので、1以上であればとりあえず右端に寄ります。
15
15
  orderには負の数も適用でき、-1以下を指定すると逆に左に寄るのが分かると思います。
16
- つまりorderの数字が低い要素から高い要素にかけて左から順番に並んでいきます。
16
+ つまり**orderの数字が低いものから高いものにかけて**左から順番に並んでいきます。
17
+ ・例 → [https://jsfiddle.net/35cowkja/](https://jsfiddle.net/35cowkja/)

3

ミスを修正

2019/10/03 09:30

投稿

take-t.t.
take-t.t.

スコア360

answer CHANGED
@@ -4,11 +4,13 @@
4
4
  }
5
5
 
6
6
  .yellow {
7
- order: 1;
7
+ order: 1; //1以上の数
8
8
  }
9
9
  ```
10
10
  ・flexboxチートシート
11
11
  [https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet](https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet)
12
12
 
13
- 追記:すいません、私も間違っていました。
13
+ 追記:すいません、回答が間違っていたので修正です
14
- 初期値0なので1いじょうであればとりあえず右端に寄ります。
14
+ orderの初期値0なので1以上であればとりあえず右端に寄ります。
15
+ orderには負の数も適用でき、-1以下を指定すると逆に左に寄るのが分かると思います。
16
+ つまりorderの数字が低い要素から高い要素にかけて左から順番に並んでいきます。

2

ミスを修正

2019/10/03 09:19

投稿

take-t.t.
take-t.t.

スコア360

answer CHANGED
@@ -4,9 +4,11 @@
4
4
  }
5
5
 
6
6
  .yellow {
7
- order: 3;
7
+ order: 1;
8
8
  }
9
9
  ```
10
+ ・flexboxチートシート
11
+ [https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet](https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet)
10
12
 
11
- ・flexboxチートシート
13
+ 追記:すいません、私も間違っていました。
12
- [https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet](https://www.webcreatorbox.com/tech/css-flexbox-cheat-sheet)
14
+ 初期値が0なので1いじょうであればとりあえず右端に寄ります。

1

ミスを修正

2019/10/03 09:13

投稿

take-t.t.
take-t.t.

スコア360

answer CHANGED
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .yellow {
7
- order: 2;
7
+ order: 3;
8
8
  }
9
9
  ```
10
10