Jquery mobile jQuery移动响应表不工作
我一直在使用jquerymobiles新的响应表。我有三张桌子,其中两张工作正常,但由于某种原因,最后一张桌子不工作 代码如下:Jquery mobile jQuery移动响应表不工作,jquery-mobile,Jquery Mobile,我一直在使用jquerymobiles新的响应表。我有三张桌子,其中两张工作正常,但由于某种原因,最后一张桌子不工作 代码如下: <table data-role='table' id='TableProfile' class='ui-responsive table-stroke'> <thead> <tr> <th data-priority='persist'>#</th> <th d
<table data-role='table' id='TableProfile' class='ui-responsive table-stroke'>
<thead>
<tr>
<th data-priority='persist'>#</th>
<th data-priority='persist'>Title</th>
<th>Author</th>
<th>Publisher</th>
<th>Edition</th>
<th data-priority='3'>Condition</th>
<th data-priority='2'>Price</th>
<th>Sold</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Thomas Calculus Early Transcendentals</td>
<td>MD.Weir, GB.Thomas Jr, J. Hass, FR.Giordano</td>
<td>Brooks/Cole</td>
<td>12</td>
<td>5</td>
<td>750</td>
<td><input type='button' value='Sold' name=70/></td>
</tr>
<tr>
<td>2</td>
<td>Thomas Calculus Early Transcendentals</td>
<td>MD.Weir, GB.Thomas Jr, J. Hass, FR.Giordano</td>
<td>Brooks/Cole</td>
<td>10</td>
<td>4</td>
<td>1000</td>
<td><input type='button' value='Sold' name=73/></td>
</tr>
</tbody>
</table>
#
标题
作者
出版商
版本
条件
价格
出售
1.
托马斯演算早期超越论
威尔博士,英国小托马斯,J.哈斯,佐丹诺神父
布鲁克斯/科尔
12
5.
750
2.
托马斯演算早期超越论
威尔博士,英国小托马斯,J.哈斯,佐丹诺神父
布鲁克斯/科尔
10
4.
1000
我使用的是jQuery Mobile 1.3版,但我不知道为什么这个表不工作我肯定由于这个功能是新的,所以在某些地方有一个bug。现在,解决我的问题的方法是完全关闭我正在使用的标签,然后再次打开网站,它成功了。刷新页面不会解决问题 您确定使用的是jQuery>1.7吗?jQuerymobile需要jQuery1.7或更高版本才能运行 我试过了,它似乎有效 标准的做法是:
<table data-role="table" id="my-table" data-mode="reflow">
<thead>
<tr>
<th>Rank</th>
<th>Movie Title</th>
<th>Year</th>
<th><abbr title="Rotten Tomato Rating">Rating</abbr></th>
<th>Reviews</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<td><a href="foo.com" data-rel="external">Citizen Kane</a></td>
<td>1941</td>
<td>100%</td>
<td>74</td>
</tr>
</tbody>
</table>
等级
电影名称
年
1941
100%
74
代码的工作示例: