简体   繁体   English

jquery手风琴内的表

[英]table inside a jquery accordion

I want to wrap a table in a jquery accordion like this...我想用这样的 jquery 手风琴包装一张桌子......

<div class="accordion">
    <h3>Room Flow</h3>
    <div>
        <table>
            <tr>
                <td>contained content</td>
            </tr>
        </table>
    </div>
</div>

The output however is different.然而输出是不同的。 The accordion divs a re rendered above the table like this...手风琴 div 像这样重新呈现在桌子上方......

<div class="accordion">
    <h3>Room Flow</h3>
    <div>

    </div>
</div>
<table>
    <tr>
        <td>contained content</td>
    </tr>
</table>

The tables are displayed via a partialview.表格通过局部视图显示。 The accordion divs are in the parent view.手风琴 div 位于父视图中。 This is in an asp.net mvc razor project.这是在一个 asp.net mvc razor 项目中。

edit: I need to mention that when I remove the tables, the accordion works.编辑:我需要提到的是,当我移除桌子时,手风琴可以工作。

I solved the issue.我解决了这个问题。 I was using extra wrapper while getting results.我在获得结果时使用了额外的包装器。 I will post code in some time.我会在一段时间内发布代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM