Jquery flowplayer - 选项卡 - div 标签内的内容不显示
我正在寻找一个 JQuery 选项卡的简单示例,我计划在其中显示两种不同的形式。
我遇到了这个例子 http://flowplayer.org/tools/demos/tabs/index .htm 这非常适合我的需求。
所以我实现了这个简单的例子。有问题的代码是:
<div class="panes"> <div>First tab content. Tab contents are called "panes"</div> <div>Second tab content</div> <div>Third tab content</div> </div>
现在我的第一个选项卡的内容是一个表单,它有几个自己的 div 标签 - 当我将该表单与 div 标签作为第一个选项卡的内容时 - 什么也没有出现。
因此,我做了一个简单的更改,并向第一个选项卡的内容添加了另一个 div 标签,如下所示,但仍然没有出现任何内容:
<div class="panes"> <div><div>First tab content. Tab contents are called "panes"</div></div> <div>Second tab content</div> <div>Third tab content</div> </div>
有没有一种简单的方法来解决此问题。这是我想在第一个选项卡中显示的内容 - 感谢您的帮助
<div id="formbox" class="formbox"> <form id="shopping_form" method="post"> <div id="3" style="width:520px;" > <textarea id="message" name="message" rows="3" cols="50"></textarea> </div> <div id="store_row" style="width:220px;float:left;padding-bottom:10px;"><b>Store</b> <input type="text" id="store" name="store" class="required" size="20" /> <input type="hidden" id="store_id"/> </div> <div id="city_column" style="width:200px;float:left;padding-bottom:10px;"><b>City</b> <input type="text" id="city" name="city" size="15"/> </div> <div id="findbutton_column" style="vertical-align:top;width:80px;float:left;"> <input class="find_address" id="findaddress" type="button" value="Find Store"/> </div> <div id="googlerow" style="width:120px;float:left;padding-bottom:10px;"> <b>Select Store</b><select id="google_stores" name="google_stores"></select> <input type="hidden" id="google_address"/> </div> <div id="google_message" style="float:left;padding-bottom:10px;display:none;"></div> <div id="locationrow" style="float:left;padding-bottom:10px;display:none;"> <b>Address/Country</b> <input type="text" id="address" name="address" size="20" /> <input type="text" id="country" name="country" size="20"/> </div> <div style="width:520px;float:left;padding-bottom:10px;" > <b>Price <input type="text" id="price" name="price" size="20" /> </div> <div id="buttonrow" style="width:200px;float:right;display:none;" > <input id="it" type="image" src="http://images.pe.com.s3.amazonaws.com/it.png" height="35px"/> </div> </form> </div>
I'm looking for a simple example of JQuery tabs in which I am planning to show two different forms.
I came across this example http://flowplayer.org/tools/demos/tabs/index.htm which is perfect for my needs.
So I implemented the simple example. The code in question is:
<div class="panes"> <div>First tab content. Tab contents are called "panes"</div> <div>Second tab content</div> <div>Third tab content</div> </div>
Now my content for the first tab is a form which has several of its own div tags - when I put that form with div tags as the content for the first tab - nothing appears.
So I made a simple change and added another div tag to the content of the first tab as shown below and still nothing appears:
<div class="panes"> <div><div>First tab content. Tab contents are called "panes"</div></div> <div>Second tab content</div> <div>Third tab content</div> </div>
Is there a simple way to fix this. This is the content that I want to display in my first tab - Thanks for your help
<div id="formbox" class="formbox"> <form id="shopping_form" method="post"> <div id="3" style="width:520px;" > <textarea id="message" name="message" rows="3" cols="50"></textarea> </div> <div id="store_row" style="width:220px;float:left;padding-bottom:10px;"><b>Store</b> <input type="text" id="store" name="store" class="required" size="20" /> <input type="hidden" id="store_id"/> </div> <div id="city_column" style="width:200px;float:left;padding-bottom:10px;"><b>City</b> <input type="text" id="city" name="city" size="15"/> </div> <div id="findbutton_column" style="vertical-align:top;width:80px;float:left;"> <input class="find_address" id="findaddress" type="button" value="Find Store"/> </div> <div id="googlerow" style="width:120px;float:left;padding-bottom:10px;"> <b>Select Store</b><select id="google_stores" name="google_stores"></select> <input type="hidden" id="google_address"/> </div> <div id="google_message" style="float:left;padding-bottom:10px;display:none;"></div> <div id="locationrow" style="float:left;padding-bottom:10px;display:none;"> <b>Address/Country</b> <input type="text" id="address" name="address" size="20" /> <input type="text" id="country" name="country" size="20"/> </div> <div style="width:520px;float:left;padding-bottom:10px;" > <b>Price <input type="text" id="price" name="price" size="20" /> </div> <div id="buttonrow" style="width:200px;float:right;display:none;" > <input id="it" type="image" src="http://images.pe.com.s3.amazonaws.com/it.png" height="35px"/> </div> </form> </div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我仍然偏爱 jquery ui 选项卡,但以下是如何使其与 flowplayer 一起使用:
I am still partial to jquery ui tabs, but here is how to make it work with flowplayer: