回答編集履歴
1
class追加、参考リンク追加
answer
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
`label`の中に`input`を内包してしまっているのが原因だと思われます。
|
2
|
-
|
2
|
+
あと、`input`に`form-control`クラスを付与しないとスタイリングされません。
|
3
3
|
```html
|
4
4
|
<div class="col-12">
|
5
5
|
<div class="c-input-area-new_post">
|
6
6
|
<div class="c-input-titleForm">
|
7
7
|
<label for="">
|
8
8
|
</label>
|
9
|
-
<input type="text" placeholder="タイトル" class="c-input-title">
|
9
|
+
<input type="text" placeholder="タイトル" class="c-input-title form-control">
|
10
10
|
</div>
|
11
11
|
</div>
|
12
12
|
</div>
|
13
|
-
```
|
13
|
+
```
|
14
|
+
[参考資料:bootstrapのチュートリアル](https://bootstrap.hana87.club/form.html)
|