【发布时间】:2014-01-30 16:15:33
【问题描述】:
我对移动应用程序开发和 jquery mobile 非常陌生。现在我正在尝试将滑块插入表格。我想要的是调整列宽,使滑块有足够的空间。代码如下。问题是宽度是根据列标题调整的,我不想在我的表中有列标题。我无法理解如何通过给出百分比来调整列宽。我正在用涟漪测试它,然后在 android 平台上测试它。 提前感谢所有可能想要帮助的人...
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<div data-role="page">
<div data-role="content">
<table data-role="table" data-mode="reflow" id="my-table" style="width: 100%">
<thead>
<tr>
<th>Column1</th>
<th style="width: 90%">Column2</th>
<th>Column3</th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="" id="" width="30" height="30"></td>
<td class="title">
<form class="full-width-slider">
<label for="slider-12" class="ui-hidden-accessible">Slider:</label>
<input type="range" name="slider-12" id="slider-12" min="0"
max="100" value="50" data-mini="true">
</form>
</td>
<td>
<input type="text" maxlength="14" size="4" name="" id="" data-mini="true" value="" />
</td>
</tr>
</tbody>
</table>
</div>
【问题讨论】:
标签: html css jquery-mobile mobile ripple