回答編集履歴

1

情報の追加。

2019/01/04 17:22

投稿

kei344
kei344

スコア69407

test CHANGED
@@ -25,3 +25,41 @@
25
25
  【ChromeデベロッパーツールでCSSをチェックする方法 | なんでものびるWEB】
26
26
 
27
27
  [https://nandemo-nobiru.com/2944/](https://nandemo-nobiru.com/2944/)
28
+
29
+
30
+
31
+ ---
32
+
33
+
34
+
35
+ **追記:**
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ `text-decoration: none;` の状態で `border-bottom`を下にぴったり付けたい場合、`display: inline-block;` `line-height: 1;` を付けると とりあえずできる。
44
+
45
+ ```CSS
46
+
47
+ p {
48
+
49
+ line-height: 1.8;
50
+
51
+ }
52
+
53
+ a {
54
+
55
+ border-bottom: 2px solid green;
56
+
57
+ line-height: 1;
58
+
59
+ display: inline-block;
60
+
61
+ text-decoration: none;
62
+
63
+ }
64
+
65
+ ```**動くサンプル:**[https://jsfiddle.net/zu4acm7p/](https://jsfiddle.net/zu4acm7p/)