回答編集履歴
1
追記
answer
CHANGED
@@ -14,4 +14,23 @@
|
|
14
14
|
}
|
15
15
|
```
|
16
16
|
動作サンプル
|
17
|
-
[https://jsfiddle.net/vt2h9221/](https://jsfiddle.net/vt2h9221/)
|
17
|
+
[https://jsfiddle.net/vt2h9221/](https://jsfiddle.net/vt2h9221/)
|
18
|
+
|
19
|
+
----
|
20
|
+
|
21
|
+
【追記】
|
22
|
+
```CSS
|
23
|
+
h2 {
|
24
|
+
border-bottom: 3px solid #ccc;
|
25
|
+
}
|
26
|
+
|
27
|
+
h2 span {
|
28
|
+
border-bottom: 3px solid #191970;
|
29
|
+
display: inline-block;
|
30
|
+
position: relative;
|
31
|
+
bottom: -3px;
|
32
|
+
}
|
33
|
+
```
|
34
|
+
|
35
|
+
動作サンプル2
|
36
|
+
[https://jsfiddle.net/vt2h9221/1/](https://jsfiddle.net/vt2h9221/1/)
|