質問編集履歴

2

ソースコードの修正

2015/12/13 10:50

投稿

nilnull
nilnull

スコア11

test CHANGED
File without changes
test CHANGED
@@ -10,58 +10,114 @@
10
10
 
11
11
  [html]
12
12
 
13
+
14
+
13
15
  <div class="table-responsive">
14
16
 
17
+
18
+
15
- <table class="table table-striped table-bordered table-hover table-condensed">
19
+ <table class="table table-striped table-bordered table-hover table-condensed">
20
+
21
+
16
22
 
17
23
  <thead>
18
24
 
25
+
26
+
19
27
  <tr>
20
28
 
29
+
30
+
21
- <th class="text-center" style="min-width:5em;width:5em;">
31
+ <th class="text-center">
32
+
33
+
22
34
 
23
35
  <div class="btn-group">
24
36
 
37
+
38
+
25
39
  <button class="btn btn-link dropdown-toggle" data-toggle="dropdown" style="color:black;">
40
+
41
+
26
42
 
27
43
  ステータス <span class="caret"></span>
28
44
 
45
+
46
+
29
47
  </button>
48
+
49
+
30
50
 
31
51
  <ul class="dropdown-menu">
32
52
 
33
- <li><a>~</a><li>
53
+
34
54
 
35
55
  <li><a>~</a><li>
36
56
 
57
+
58
+
59
+ <li><a>~</a><li>
60
+
61
+
62
+
37
63
  </ul>
64
+
65
+
38
66
 
39
67
  </div>
40
68
 
69
+
70
+
41
71
  </th>...
72
+
73
+
42
74
 
43
75
  [css]
44
76
 
77
+
78
+
45
79
  .table-responsive {
80
+
81
+
46
82
 
47
83
  min-height: .01%;
48
84
 
85
+
86
+
49
87
  overflow-x: auto;
88
+
89
+
50
90
 
51
91
  }
52
92
 
93
+
94
+
53
95
  @media screen and (max-width: 767px) {
96
+
97
+
54
98
 
55
99
  .table-responsive {
56
100
 
101
+
102
+
57
103
  width: 100%;
104
+
105
+
58
106
 
59
107
  margin-bottom: 15px;
60
108
 
109
+
110
+
61
- overflow-y: visible; <!-- 変更前 hidden -->
111
+ overflow-y: visible;
112
+
113
+
62
114
 
63
115
  -ms-overflow-style: -ms-autohiding-scrollbar;
64
116
 
117
+
118
+
65
119
  border: 1px solid #ddd;
66
120
 
121
+
122
+
67
123
  }

1

ソースコードの追加

2015/12/13 10:50

投稿

nilnull
nilnull

スコア11

test CHANGED
File without changes
test CHANGED
@@ -1 +1,67 @@
1
1
  こんにちは。cssのoverflow:autoで指定された親要素の中の特定の子要素だけ親要素からはみ出して表示させたいのですが、どのようにすれば良いか分からなく困っています。解決策をご存知の方、是非ご教授くださらないでしょうか。よろしくお願いします。
2
+
3
+
4
+
5
+ 補足:bootstrapを使用しています。以下ソースコードです。
6
+
7
+ <ul class="dropdown-menu">の部分をテーブルからはみ出して表示させたいのですが, <div class="table-responsive">でoverflow-x:auto;が指定されているので思ったように出来ないのだと考えています。
8
+
9
+
10
+
11
+ [html]
12
+
13
+ <div class="table-responsive">
14
+
15
+ <table class="table table-striped table-bordered table-hover table-condensed">
16
+
17
+ <thead>
18
+
19
+ <tr>
20
+
21
+ <th class="text-center" style="min-width:5em;width:5em;">
22
+
23
+ <div class="btn-group">
24
+
25
+ <button class="btn btn-link dropdown-toggle" data-toggle="dropdown" style="color:black;">
26
+
27
+ ステータス <span class="caret"></span>
28
+
29
+ </button>
30
+
31
+ <ul class="dropdown-menu">
32
+
33
+ <li><a>~</a><li>
34
+
35
+ <li><a>~</a><li>
36
+
37
+ </ul>
38
+
39
+ </div>
40
+
41
+ </th>...
42
+
43
+ [css]
44
+
45
+ .table-responsive {
46
+
47
+ min-height: .01%;
48
+
49
+ overflow-x: auto;
50
+
51
+ }
52
+
53
+ @media screen and (max-width: 767px) {
54
+
55
+ .table-responsive {
56
+
57
+ width: 100%;
58
+
59
+ margin-bottom: 15px;
60
+
61
+ overflow-y: visible; <!-- 変更前 hidden -->
62
+
63
+ -ms-overflow-style: -ms-autohiding-scrollbar;
64
+
65
+ border: 1px solid #ddd;
66
+
67
+ }