【问题标题】:Gap between textbox and a button in asp.netasp.net中文本框和按钮之间的差距
【发布时间】:2014-01-23 15:43:44
【问题描述】:

我在 .aspx 中创建搜索栏
代码

   <div align ="center"     
        style="border: thick none #008080; height: 597px; width: 670px; color: #000000; font-weight: bold; font-size: medium; font-family: Calibri;"><br /><br />        
        <center><div class="vpb_main_wrapper3" top="20" align="center" style="left: inherit"/><br clear="all"/>
        <h1 align="center" 

                style="color: #3399FF; font-weight: bolder; font-size: xx-large; font-family: 'Footlight MT Light';">
         ALL DOCUMENTS</h1><hr /><hr /><hr /><br /><br />
              <div>
          <asp:TextBox ID="searz" runat="server"  class="searches" type="text" CausesValidation="false"  placeholder="Search Documents"></asp:TextBox>
<%--     <input id="searz" class="searches" runat="server" type="text" CausesValidation="false"  placeholder="Type here"/>
--%>   <button id="submits" class="submit" runat="server"  type="submit"  onserverclick="Btn_submits_Click" CausesValidation="false" value="Search" validationgroup="123">Search</button>

    </div>

                <div class="CSSTableGenerator">
                <table border="0" width="100%" ..........

这是输出..

看起来文本框和按钮之间有很多间隙,所以我如何消除文本框和按钮之间的间隙

谁能建议我如何解决这个问题? 谢谢

【问题讨论】:

    标签: html asp.net search


    【解决方案1】:

    我通过删除这个来解决这个问题......

    .searches, #submit
    {
        float:left;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-14
      • 2017-11-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-24
      • 2011-05-01
      相关资源
      最近更新 更多