私は<tables>
の番号を持つ<div>
を持っていますが、これをどのようにして1行に入れるのですか?複数のテーブルを1行に配置するにはどうすればよいですか?
<html>
<head>
<title>no-line-break</title>
<style type="text/css">
#foo
{
width: 500px;
border: 1px solid #000;
overflow-x: auto;
}
.bar
{
float: left;
width: 150px;
margin: 5px;
}
.bar th
{
background-color: #c0c0c0;
}
</style>
</head>
<body>
<div id="foo">
<table class="bar">
<tr>
<th>
Foo #1
</th>
</tr>
<tr>
<td>
Bar #1
</td>
</tr>
</table>
<table class="bar">
<tr>
<th>
Foo #2
</th>
</tr>
<tr>
<td>
Bar #1
</td>
</tr>
<tr>
<td>
Bar #2
</td>
</tr>
<tr>
<td>
Bar #3
</td>
</tr>
</table>
<table class="bar">
<tr>
<th>
Foo #3
</th>
</tr>
<tr>
<td>
Bar #1
</td>
</tr>
</table>
<table class="bar">
<tr>
<th>
Foo #4
</th>
</tr>
<tr>
<td>
Bar #1
</td>
</tr>
</table>
<div style="clear: both;"> </div>
</div>
</body>
</html>
彼らはすでに... HTTPべきであるように見える://jsfiddle.net/T8pfZ/ – Dutchie432
@ Dutchie432、第4テーブルがラップしていると何のスクロールバーが表示されていません。 – jeroen
おそらく伝統的なテーブルレイアウトがあなたのためにあるかもしれません。 http://jsfiddle.net/T8pfZ/2/ – Dutchie432