【发布时间】:2013-06-10 15:40:45
【问题描述】:
我在 jquery 移动表中遇到问题。
我想达到这样的结果
我从纯 HTML 代码中得到的
HTML
<table border="1">
<tr>
<td>Rank</td>
<td>1941
<table border="1">
<tr>
<td>Rank</td>
<td>1941</td>
</tr>
</table>
</td>
</tr>
</table>
我想通过使用 data-role="table"、data-mode="reflow" 的 jquery 移动表来实现相同的目的。 当我做同样的事情时,
<table data-role="table" id="my-table-next" data-mode="reflow" border="1">
<thead>
<tr>
<th>Rank</th>
</tr>
</thead>
<tbody>
<tr>
<td>1941
<table data-role="table" id="my-table-second" data-mode="columntoggle" border="1">
<thead>
<tr>
<th>Rank</th>
</tr>
</thead>
<tbody>
<tr>
<td>1941</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
我导致:
期待结果如第一张图片所示,
请帮我解决这个问题
提前致谢 拉维.M
【问题讨论】:
-
我使用了没有任何数据角色的表,它们在 jquery mobile 上运行良好
标签: jquery html jquery-mobile