修复表格中的图像 [英] Fix the image in a table

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

问题描述

我有一个网格,它在表格内,网格用于计费,我们可以添加数据,如果要编辑任何一行,在左侧有一个编辑按钮和删除按钮,现在勾选更新和单击编辑"按钮后启用更新和取消"按钮,则取消图像被隐藏,这时网格在顶部移动,单击取消"或更新"按钮后,网格向下移动,我不希望网格向上和向下移动.请帮助我,我为此苦苦挣扎了1周.帮帮我...................

i have grid, which is inside a table,grid is for billing, we can add data,if we want to edit any one of rows, in left side there is an edit button and delete button, now the tick update and cancel image are hidden after click the edit button the update and cancel button is enabled, at this time the grid is moving top, after click the cancel or update button grid is moving down, i dont want that up and down movement of grid . please help me, I am strugling on this for 1 week. help me.............

推荐答案

尝试为更新和取消按钮保留空间,即使它们不可见.

不知道您的操作方式,但是将两个按钮都放在div中并将其可见性样式设置为隐藏,将隐藏按钮,但是DIV将保留显示它们所需的空间.

这样,当您显示包含按钮的div时,您的UI看起来就不会四处移动.


Try to reserve the space for update and cancel buttons even though they are not visible.

Don''t know how you are doing it, but placing both the buttons in a div and setting its visibility style to hidden, will hide the buttons but the DIV will reserve the space required to display them.

In this way, when you show the div containing the buttons, your UI will not look like shifting around.


<div id="hiddenButtons" style="visibility: hidden;">
<input type="button" />
<input type="button" />
</div>



要显示按钮,



To display the buttons,

<div id="hiddenButtons" style="<b>visibility: visible;</b>">
<input type="button" />
<input type="button" />
</div>


这篇关于修复表格中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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