回答編集履歴
1
修正
test
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
もしそのようにしたいのであれば、以下のように
|
1
|
+
もしそのようにしたいのであれば、以下のように [`order-*` クラス](https://getbootstrap.com/docs/4.1/layout/grid/#order-classes)を使用することが出来ます ([動作確認用リンク](https://jsfiddle.net/xey1p4va/)) 。
|
2
|
-
|
3
|
-
|
4
2
|
|
5
3
|
```HTML
|
6
4
|
|
@@ -8,7 +6,7 @@
|
|
8
6
|
|
9
7
|
<div class="container">
|
10
8
|
|
11
|
-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown1" aria-controls="navbarNavDropdown1" aria-expanded="false" aria-label="Toggle navigation">
|
9
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown1, #navbarNavDropdown2" aria-controls="navbarNavDropdown1 navbarNavDropdown2" aria-expanded="false" aria-label="Toggle navigation">
|
12
10
|
|
13
11
|
<span class="navbar-toggler-icon"></span>
|
14
12
|
|
@@ -16,73 +14,7 @@
|
|
16
14
|
|
17
15
|
<a class="navbar-brand" href="/"><img src="https://placehold.jp/50x50.png?text=logo.png"></a>
|
18
16
|
|
19
|
-
<!--- 人型アイコン --->
|
20
|
-
|
21
|
-
<a href="#" class="navbar-brand"><img src="https://placehold.jp/50x50.png?text=profile.png"></a>
|
22
|
-
|
23
|
-
<div class="collapse navbar-collapse" id="navbarNavDropdown1">
|
24
|
-
|
25
|
-
<ul class="navbar-nav">
|
26
|
-
|
27
|
-
<li class="nav-item">
|
28
|
-
|
29
|
-
<a href="#" class="navbar-brand"><img src="https://placehold.jp/50x50.png?text=guide.png"></a>
|
30
|
-
|
31
|
-
</li>
|
32
|
-
|
33
|
-
<li class="nav-item">
|
34
|
-
|
35
|
-
<a href="#" class="navbar-brand"><img src="https://placehold.jp/50x50.png?text=terms.png"></a>
|
36
|
-
|
37
|
-
</li>
|
38
|
-
|
39
|
-
</ul>
|
40
|
-
|
41
|
-
</div>
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
<div class="collapse navbar-collapse" id="navbarNavDropdown2">
|
46
|
-
|
47
|
-
<ul class="navbar-nav">
|
48
|
-
|
49
|
-
<li class="nav-item">
|
50
|
-
|
51
|
-
<a href="#" class="navbar-brand"><img src="https://placehold.jp/50x50.png?text=logout.png"></a>
|
52
|
-
|
53
|
-
</li>
|
54
|
-
|
55
|
-
</ul>
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
|
-
</div>
|
60
|
-
|
61
|
-
</nav>
|
62
|
-
|
63
|
-
```
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
[`order-*` クラス](https://getbootstrap.com/docs/4.1/layout/grid/#order-classes)を使用することが出来ます ([動作確認用リンク](https://jsfiddle.net/7zpg4x6b/)) 。
|
68
|
-
|
69
|
-
```HTML
|
70
|
-
|
71
|
-
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
72
|
-
|
73
|
-
<div class="container">
|
74
|
-
|
75
|
-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown1" aria-controls="navbarNavDropdown1" aria-expanded="false" aria-label="Toggle navigation">
|
76
|
-
|
77
|
-
<span class="navbar-toggler-icon"></span>
|
78
|
-
|
79
|
-
</button>
|
80
|
-
|
81
|
-
<a class="navbar-brand" href="/"><img src="https://placehold.jp/50x50.png?text=logo.png"></a>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<div class="collapse navbar-collapse order-1" id="navbarNavDropdown1">
|
17
|
+
<div class="collapse navbar-collapse order-1 order-lg-0" id="navbarNavDropdown1">
|
86
18
|
|
87
19
|
<ul class="navbar-nav">
|
88
20
|
|
@@ -106,7 +38,7 @@
|
|
106
38
|
|
107
39
|
<a href="#" class="navbar-brand"><img src="https://placehold.jp/50x50.png?text=profile.png"></a>
|
108
40
|
|
109
|
-
<div class="collapse navbar-collapse" id="navbarNavDropdown2">
|
41
|
+
<div class="collapse navbar-collapse order-1" id="navbarNavDropdown2">
|
110
42
|
|
111
43
|
<ul class="navbar-nav">
|
112
44
|
|