Sat*_*000 14 mobile-website jquery-mobile
任何人都可以指向任何样品或者可以提供Jquery Mobile表的任何样品吗?
我在他们的网站上看过演示,没有发现任何表格.
我需要能够创建一个在Mobile/iPad上看起来不错的桌子.
Phi*_*ord 14
http://jquerymobile.com/demos/1.0a4.1/#docs/forms/../../docs/content/content-html.html右键单击并查看源代码:
<table summary="This table lists all the JetBlue flights.">
<caption>Travel Itinerary</caption>
<thead>
<tr>
<th scope="col">Flight:</th>
<th scope="col">From:</th>
<th scope="col">To:</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="5">Total: 3 flights</td>
</tr>
</tfoot>
<tbody>
<tr>
<th scope="row">JetBlue 983</th>
<td>Boston (BOS)</td>
<td>New York (JFK)</td>
</tr>
<tr>
<th scope="row">JetBlue 354</th>
<td>San Francisco (SFO)</td>
<td>Los Angeles (LAX)</td>
</tr>
<tr>
<th scope="row">JetBlue 465</th>
<td>New York (JFK)</td>
<td>Portland (PDX)</td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
CSS
<style type="text/css">
table { width:100%; }
table caption { text-align:left; }
table thead th { text-align:left; border-bottom-width:1px; border-top-width:1px; }
table th, td { text-align:left; padding:6px;}
</style>
Run Code Online (Sandbox Code Playgroud)
更新链接:
Ale*_*lex 10
请尝试使用此布局
<ul>
<li> <!--first item -->
<table>
<tr>
<td>Heading1</td>
<td>Meaning1</td>
</tr>
<tr>
<td>Heading2</td>
<td>Meaning2</td>
</tr>
<tr>
<td>Heading3</td>
<td>Meaning3</td>
</tr>
</table>
</li>
<li> <!-- second item -->
<table>
<tr>
<td>Heading1</td>
<td>Meaning1</td>
</tr>
<tr>
<td>Heading2</td>
<td>Meaning2</td>
</tr>
<tr>
<td>Heading3</td>
<td>Meaning3</td>
</tr>
</table>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
和css
ul {
width: 100%;
margin-left: 0px;
padding: 0px;
}
ul li {
list-style-type: none;
border-bottom: 1px dashed gray;
margin-top: 10px;
}
Run Code Online (Sandbox Code Playgroud)
*修复了小错误,但必须添加它才能进行大量编辑
| 归档时间: |
|
| 查看次数: |
50773 次 |
| 最近记录: |