我有一个table,我想要hide并show使用jQuery。我想在右上角添加一个“关闭”按钮。
但是关闭按钮总是出现在桌子后面,所以看不到
我怎样才能让关闭按钮出现在桌子前面(不是上面/侧面),因此可以点击?
<style>
table
{
    border: 3px solid #000000;
    align: center;  
    text-align: center;
    color:#000000;
}
th,td
{
    border-width: 2px;
    border-color: #000000;
    border-style: solid;
}
#RCLPage
{
    display:block;
    position:absolute;
    z-index:100;    
}
.close_box
{
    background-image:url('../tsTest2/images/close.gif');
    background-repeat:no-repeat;
    background-position:right top; 
    position:relative;
    z-index:101;
    //height:10px;
}
#CPSTab
{
    padding:10;
    width:20em; 
}
</style>
<div id="RCLPage">
    <div class="close_box"></div>
    <table id="CPSTab">
        <thead>
            <tr>
                <th colspan="2">The Header</th>
            </tr>
        </thead>
        <tbody>
            <tr><td>Item1</td><td>2</td></tr>
            <tr><td>Item2</td><td>5</td></tr>
            <tr><td>Item3</td><td>3</td></tr>
        </tbody>
    </table>    
</div>