如何显示相同的行 [英] How to display same line

查看:78
本文介绍了如何显示相同的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个按钮和一个文本框,我想在我的td内同一行显示它们



我添加了这个但它没有任何想法:



I have 2 buttons and a textbox and I want to display them all on same line inside my td

I added this but it didn't work any ideas:

<td style="margin-removed 40px; display:block;">
    <asp:ImageButton ID="btndate" runat="server" Height="15px" ImageUrl="~/images/blue-left-arrow.png" Width="25px" />
    <asp:UpdatePanel runat="server" ID="UpdatePanel2" ChildrenAsTriggers="true">
        <ContentTemplate>
            <asp:TextBox ID="date_" runat="server" TextMode="DateTime" Width="80px"></asp:TextBox>
            <asp:ImageButton runat="Server" ID="ImageButton3" ImageUrl="~/images/ico_calendar.gif" AlternateText="Click here to display calendar" />
            <cc1:CalendarExtender ID="CalendarExtender3"  runat="server" TargetControlID="date_" PopupButtonID="ImageButton3" Format="dd/MM/yyyy" TodaysDateFormat="dd/MM/yyyy"></cc1:CalendarExtender>
        </ContentTemplate>
    <triggers>
        <asp:AsyncPostBackTrigger ControlID="btndate" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="btndate" EventName="Click" />
    </triggers>
    </asp:UpdatePanel>
    <asp:ImageButton ID="btndate" runat="server" Height="15px" ImageUrl="~/images/blue-right-arrow.png" Width="25px" />
</td>

推荐答案

在你的主要
<td>

style put Float:左边

如果它不能正常工作放置Float:在每个控件样式属性中按类或者直接左键

,因为控件正在接受样式。



希望它有所帮助!!!

style put Float:left
if it dosn't work put Float:left in each controls style attribute either by class or directly
as controls are accepting styling.

Hope it helps!!!


这篇关于如何显示相同的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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