回答編集履歴
1
途中で送信してしまったので修正
answer
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
bootstrapをご使用ですか?
|
2
2
|
それならば、input-group-textというボタンのような見出しが使用可能です。
|
3
3
|
|
4
|
+
```
|
4
|
-
|
5
|
+
html<div class="search">
|
5
6
|
<form>
|
6
7
|
<div class="input-group">
|
7
8
|
<input type="text" name="search" class="form-control" placeholder="出発地">
|
@@ -16,4 +17,11 @@
|
|
16
17
|
</button>
|
17
18
|
</div>
|
18
19
|
</form>
|
19
|
-
</div>
|
20
|
+
</div>
|
21
|
+
```
|
22
|
+

|
23
|
+
|
24
|
+
ドキュメント(v5.0のものです。以前のバージョンでも同様のことは実現可能です)
|
25
|
+
[https://getbootstrap.jp/docs/5.0/forms/input-group/](https://getbootstrap.jp/docs/5.0/forms/input-group/)
|
26
|
+
|
27
|
+
[codepenでのデモ](https://codepen.io/haruyan-hopemucci/pen/eYvrbra)
|