调整面板上按钮的大小 [英] Adusting the size of buttons on panel

查看:111
本文介绍了调整面板上按钮的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在面板上动态添加按钮并显示一些数据.因此,我希望在面板上调整按钮而面板上没有任何空间.我该怎么做..帮助我

Hi all,
I am adding buttons dynamically on panel and displaying some data.So i want the buttons to be adjusted on panel without any space on panel.How can i do that..help me out

推荐答案

如果要动态创建按钮,则可以尝试在表格"单元格中创建按钮,然后将表格放置在面板中.这样可以提供均匀的间距.
我添加了一个示例HTML来解释相同的内容.
If you are creating the buttons dynamically, then you can try creating the buttons in a Table cell and then place the table in the panel. This will provide uniform spacing.
I have added a sample HTML to explain the same.
<asp:Panel ID="Panel1" runat="server">
    <table>
        <tr>
            <td><asp:Button ID="Button1" runat="server" Text="Button 1" onclick="Button1_Click" /></td>
            <td><asp:Button ID="Button2" runat="server" Text="Button 2" onclick="Button2_Click" /></td>
        </tr>
    </table>
 </asp:Panel>


这篇关于调整面板上按钮的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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