位置固定在表格行中. [英] Position fixed in a table row.

查看:70
本文介绍了位置固定在表格行中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想固定表格行位置.
那怎么可能呢?
我已经尝试过这样


如果我使用上面的代码,那么我的父表第二td内容与
重叠 div内容,如何避免div内容重叠?

Hi,
i wanted to make a table row position fixed.
then how can it be possible?
i have tried like this


If i use above code then my parent table 2nd td content overlapping the
div content, how can i avoid overlapping div content?






此td内容与上述td内容重叠


This td content overlapping the above td content

推荐答案

尝试一下

try this

<table>
            <tr>
                <td>
                    <div style="position: absolute;">
                        <table>
                            <tr>
                                <td>
                                    want to make moveable if scrollabar move
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    This td content overlapping the above td content
                </td>
            </tr>
        </table>




仍然,如果您不喜欢此代码,请回复我.




still if you are not getting with this code reply me i will get back to you


尝试一下
<table style="removed: fixed;">
            <tr>
                <td>
                    <div>
                        <table>
                            <tr>
                                <td>
                                    want to make moveable if scrollabar move
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    This td content overlapping the above td content
                </td>
            </tr>
        </table>


i have found the solution.

<div style="min-height: 70px;">
    <table style="position: fixed;z-index:1;">
      <tr>
        <td style="min-width: 300px;">
        </td>
      </tr>
    </table>
<div>
<div style="width: 99%; min-width: 800px;">
    <table>
      <tr>
        <td style="min-width: 100px;">
        </td>
        <td style="min-width: 700px;">
        </td>
      </tr>
     </table>
 </div>
.


这篇关于位置固定在表格行中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆