jQuery手风琴和css float

Or *_*ger 2 html javascript css jquery

我正在尝试让jquery手风琴在另一个设置float:right为另一个表旁边的div/table下正常工作float:left.

每当我这样做时,h3的整个长度和内容就会失控.

我也试过使用'填充空间'功能,根本没用.

有没有人用手风琴影响float?

谢谢,

<script> 
$(function() {
    $( "#accordion" ).accordion();
});
</script> 

<table border="0" cellpadding="0" cellspacing="0" style="width:380px;float:left;">
<tr><td>some text</td><td>some more text</td></tr>
<tr>some text</td><td>some more text</td></tr>
</table>

            <div id="attendance_accordion" style="float:right;width:350px;"> 
                <h3><a href="#">Section 1</a></h3> 
                <div> 
                    <p> 
                        Section 1 text
                    </p> 
                </div> 
                <h3><a href="#">Section 2</a></h3> 
                <div> 
                    <p> 
                    Section 2 text
                    </p> 
                </div> 
                <h3><a href="#">Section 3</a></h3> 
                <div> 
                    <p> 
                    Section 3 text
                    </p> 
                </div>      
            </div> 
Run Code Online (Sandbox Code Playgroud)

mr.*_*r.b 5

如果你能发布你的标记和你的CSS,以便我们可以看到它是如何完成的.

作为快速评估,当你有浮动元素时,请确保在所有浮动元素之后使用"clear:both".你可以把它"<div style="clear:both">"放在最后.