質問編集履歴
4
コード修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -49,14 +49,14 @@
|
|
49
49
|
<table>
|
50
50
|
<thead>
|
51
51
|
<tr>
|
52
|
-
<th>
|
52
|
+
<th>AAAA title</th>
|
53
|
-
<th>
|
53
|
+
<th>BBBB title</th>
|
54
54
|
</tr>
|
55
55
|
</thead>
|
56
56
|
<tbody>
|
57
57
|
<tr>
|
58
|
-
<td>
|
58
|
+
<td>1aaaaa</td>
|
59
|
-
<td>
|
59
|
+
<td>1bbbbb</td>
|
60
60
|
</tr>
|
61
61
|
</tbody>
|
62
62
|
</table>
|
3
コード修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
+
以下のCSSを,
|
1
|
-
以
|
2
|
+
title_area,body_areaのみに適用し、それ以外の部分では無効にするのはどうしたらいいのでしょうか?
|
2
3
|
|
3
4
|
```html
|
4
5
|
<div class="title_area">
|
@@ -43,6 +44,24 @@
|
|
43
44
|
</table>
|
44
45
|
</div>
|
45
46
|
|
47
|
+
<div>
|
48
|
+
<!-- ここには、id,classがない。この内部では以下CSSを適用させたくない -->
|
49
|
+
<table>
|
50
|
+
<thead>
|
51
|
+
<tr>
|
52
|
+
<th>A Xarea</th>
|
53
|
+
<th>B Xarea</th>
|
54
|
+
</tr>
|
55
|
+
</thead>
|
56
|
+
<tbody>
|
57
|
+
<tr>
|
58
|
+
<td>1a Xarea</td>
|
59
|
+
<td>1b Xarea</td>
|
60
|
+
</tr>
|
61
|
+
</tbody>
|
62
|
+
</table>
|
63
|
+
</div>
|
64
|
+
|
46
65
|
```
|
47
66
|
|
48
67
|
```css
|
2
コード修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,24 +12,34 @@
|
|
12
12
|
|
13
13
|
<div class="body_area">
|
14
14
|
<table>
|
15
|
+
<tbody>
|
15
16
|
<tr>
|
16
17
|
<td>1a</td>
|
17
18
|
<td>1b</td>
|
18
19
|
</tr>
|
20
|
+
<tr>
|
21
|
+
<td>2a</td>
|
22
|
+
<td>2b</td>
|
23
|
+
</tr>
|
24
|
+
</tbody>
|
19
25
|
</table>
|
20
26
|
</div>
|
21
27
|
|
22
28
|
<div class="x_area">
|
23
29
|
<!-- この内部では以下CSSを適用させたくない -->
|
24
30
|
<table>
|
31
|
+
<thead>
|
25
32
|
<tr>
|
26
33
|
<th>A Xarea</th>
|
27
34
|
<th>B Xarea</th>
|
28
35
|
</tr>
|
36
|
+
</thead>
|
37
|
+
<tbody>
|
29
38
|
<tr>
|
30
39
|
<td>1a Xarea</td>
|
31
40
|
<td>1b Xarea</td>
|
32
41
|
</tr>
|
42
|
+
</tbody>
|
33
43
|
</table>
|
34
44
|
</div>
|
35
45
|
|
@@ -37,14 +47,24 @@
|
|
37
47
|
|
38
48
|
```css
|
39
49
|
<style type="text/css">
|
40
|
-
|
50
|
+
div.body_area thead, tbody {
|
41
|
-
|
51
|
+
width: 100%;
|
52
|
+
display: block;
|
42
53
|
}
|
43
|
-
div {
|
54
|
+
div.body_area tr {
|
44
|
-
|
55
|
+
width: 100%;
|
45
|
-
height: 100px;
|
46
|
-
overflow: auto;
|
47
56
|
}
|
57
|
+
div.body_area tbody {
|
58
|
+
width: 100%;
|
59
|
+
height: 100px;
|
60
|
+
overflow-x: hidden;
|
61
|
+
overflow-y: scroll;
|
62
|
+
}
|
63
|
+
div.title_area tbody {
|
64
|
+
width: 100%;
|
65
|
+
overflow-x: hidden;
|
66
|
+
overflow-y: scroll;
|
67
|
+
}
|
48
68
|
</style>
|
49
69
|
|
50
70
|
```
|
1
コード修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,12 +23,12 @@
|
|
23
23
|
<!-- この内部では以下CSSを適用させたくない -->
|
24
24
|
<table>
|
25
25
|
<tr>
|
26
|
-
<th>A</th>
|
26
|
+
<th>A Xarea</th>
|
27
|
-
<th>B</th>
|
27
|
+
<th>B Xarea</th>
|
28
28
|
</tr>
|
29
29
|
<tr>
|
30
|
-
<td>1a</td>
|
30
|
+
<td>1a Xarea</td>
|
31
|
-
<td>1b</td>
|
31
|
+
<td>1b Xarea</td>
|
32
32
|
</tr>
|
33
33
|
</table>
|
34
34
|
</div>
|