【发布时间】:2013-12-25 10:21:14
【问题描述】:
代码如下:
<div class="timetable" class="table">
<table border="1">
<tr class="ura">
<th class="ura-ura"><span>1.1</span></th>
<th class="ura-predmet"><span>1.2</span></th>
<th class="ura-ucilnica"><span>1.3</span></th>
</tr>
<tr class="ura-nadomescanje">
<th class="ura-nadomescanje-ura"><span>2.1</span></th>
<th class="ura-nadomescanje-predmet"><span>2.2</span></th>
<th class="ura-nadomescanje-ucilnica"><span>2.3</span></th>
<th class="ura-nadomescanje-profesor"><span>2.4</span></th>
</tr>
<tr class="ura">
<th class="ura-ura"><span>3.1</span></th>
<th class="ura-predmet"><span>3.2</span></th>
<th class="ura-ucilnica"><span>3.3</span></th>
</tr>
</table>
</div>
和 CSS(使用这些代码): http://jsfiddle.net/AV38G/10/
我想在表格中有 3 行,但同一类的行重叠。我不知道为什么。
我想要的: 1.1 1.2.... 2.1 2.2... 3.1 3.2...
但我总是得到: 3.1 3.2... 2.1 2.2...
我猜第三行写在第一行上。但我不知道如何解决它。
【问题讨论】:
-
在 Fiddle 中看起来不错
1.1 1.2 1.3 ...你能更好地解释一下你想要实现什么吗? -
你的 HTML 和 CSS 需要做很多改变
标签: html css html-table overlap