我怎样才能让我的捕捉到窗口?
我正在使用 jQtouch 和这个 JQTouch 扩展 http://code.google.com/p/jqextensions/ 。
我有我的标记,因为
<div id="uiPage">
<div class="toolbar">
<h1>UI/UX Design</h1>
<a class="button back" href="#home">Back</a>
</div>
<div class="horizontal-slide">
<table>
<tr>
<td>
<div class="slide-container current">
<img src="gallery/one.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/two.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/three.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/four.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/five.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/six.jpg" />
</div>
</td>
</tr>
</table>
</div>
</div>
我希望 td 能够捕捉到窗口,就像 iPhone 主屏幕中的 UI 一样。
谁能帮我弄清楚如何使 td 捕捉到窗口?
I'm using jQtouch and this JQTouch extension at http://code.google.com/p/jqextensions/.
I've my markup as
<div id="uiPage">
<div class="toolbar">
<h1>UI/UX Design</h1>
<a class="button back" href="#home">Back</a>
</div>
<div class="horizontal-slide">
<table>
<tr>
<td>
<div class="slide-container current">
<img src="gallery/one.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/two.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/three.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/four.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/five.jpg" />
</div>
</td>
<td>
<div class="slide-container">
<img src="gallery/six.jpg" />
</div>
</td>
</tr>
</table>
</div>
</div>
I want the td
s to snap to the window just like the UI does as in the iPhone home screen.
Can anyone help me figure out how to make the td
s snap to the window?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不使用 jQTouch 照片库扩展程序?看看演示(特别是“照片库”和“照片库 2”) )。
基本设置如下所示:
编辑:
要显示工具栏,也可以这样做。这是一个演示: http://jsbin.com/aqito4/7
只需禁用
hideToolbars
选项,请参阅上面修改后的代码。Why don't you use the jQTouch Photo Gallery extension? Take a look at the demo (esp "Photo Gallery" and "Photo Gallery 2").
A basic setup would look like this:
EDIT:
To show toolbars, it can be done as well. Here is a demo: http://jsbin.com/aqito4/7
Simply disable the
hideToolbars
option, see modified code above.