回答編集履歴

3

参考を追記

2020/09/18 03:12

投稿

Lhankor_Mhy
Lhankor_Mhy

スコア36134

test CHANGED
@@ -22,6 +22,10 @@
22
22
 
23
23
 
24
24
 
25
+ [vertical-align - CSS: カスケーディングスタイルシート | MDN](https://developer.mozilla.org/ja/docs/Web/CSS/vertical-align)
26
+
27
+
28
+
25
29
  ---
26
30
 
27
31
 

2

サンプルを追記

2020/09/18 03:12

投稿

Lhankor_Mhy
Lhankor_Mhy

スコア36134

test CHANGED
@@ -3,6 +3,10 @@
3
3
 
4
4
 
5
5
  こちらはいかがでしょうか。
6
+
7
+
8
+
9
+ [サンプル](https://jsfiddle.net/Lhankor_Mhy/cz1t2um4/)
6
10
 
7
11
 
8
12
 

1

参考を追記

2020/09/18 03:10

投稿

Lhankor_Mhy
Lhankor_Mhy

スコア36134

test CHANGED
@@ -15,3 +15,21 @@
15
15
  }
16
16
 
17
17
  ```
18
+
19
+
20
+
21
+ ---
22
+
23
+
24
+
25
+ 参考:
26
+
27
+
28
+
29
+ > The baseline of an 'inline-block' is the baseline of its last line box in the normal flow, unless it has either no in-flow line boxes or if its 'overflow' property has a computed value other than 'visible', in which case the baseline is the bottom margin edge.
30
+
31
+ [Visual formatting model details](https://www.w3.org/TR/CSS2/visudet.html#line-height)
32
+
33
+
34
+
35
+ (勝手訳)inline-blockのベースラインは、通常のフローでは最後の行ボックスのベースラインになります。行ボックスがないか、'overflow' が 'visible' 以外の場合、マージンボックス下辺になります。