回答編集履歴
1
typo
test
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
`h1`の真下に、`h1::before`で全く同じ文字「新店舗オープニングスタッフ募集合格祝金キャンペーン」を配置して、そちらにテキストシャドウをつけてみました。
|
3
3
|
|
4
4
|
##### contentの文字列の改行方法
|
5
|
-
`::before` `::after`の`content:
|
5
|
+
`::before` `::after`の`content: ""`の中に書く文章は以下の方法でbrのような改行をすることができます。
|
6
6
|
|
7
7
|
```css
|
8
8
|
selector::before {
|
9
|
-
content: "ここで→\A
|
9
|
+
content: "ここで→\A改行";
|
10
10
|
white-space: pre;
|
11
11
|
}
|
12
12
|
```
|