2016-12-15 1 views
0

Я пытаюсь получить текстовое поле и значок в одной строке, рядом друг с другом, например, в группе ввода начальной загрузки, но по какой-то причине я не могу ее достичь. Значок можно щелкнуть., работающий со щелчком мыши со вкладкой ввода-вывода

<div class="input-group"> 
<asp:textbox id="txtParentCategoryCode" runat="server" cssclass="input-text normal" maxlength="20"></asp:textbox> 
<span class="middle-span"> 
    <asp:linkbutton id="btn_Category" runat="server"><i class="fa fa-folder-open" aria-hidden="true"></i></asp:linkbutton> 
    <asp:linkbutton id="imgClearCal" runat="server" tooltip="Clear Category" style="vertical-align: middle; cursor: pointer;"><i class="fa fa-times" aria-hidden="true"></i></asp:linkbutton> 
</span>  
</div> 

Пожалуйста, помогите!

ответ

0

HTML

<div class="container"> 
    <div class="row"> 
     <div class="col-md-6"> 
      <h2>Custom search field</h2> 
      <div id="custom-search-input"> 
       <div class="input-group col-md-12"> 
        <input type="text" class="form-control input-lg" placeholder="Buscar" /> 
        <span class="input-group-btn"> 
         <button class="btn btn-info btn-lg" type="button"> 
          <i class="glyphicon glyphicon-search"></i> 
         </button> 
        </span> 
       </div> 
      </div> 
     </div> 
    </div> 
</div> 

CSS

#custom-search-input{ 
    padding: 3px; 
    border: solid 1px #E4E4E4; 
    border-radius: 6px; 
    background-color: #fff; 
} 

#custom-search-input input{ 
    border: 0; 
    box-shadow: none; 
} 

#custom-search-input button{ 
    margin: 2px 0 0 0; 
    background: none; 
    box-shadow: none; 
    border: 0; 
    color: #666666; 
    padding: 0 8px 0 10px; 
    border-left: solid 1px #ccc; 
} 

#custom-search-input button:hover{ 
    border: 0; 
    box-shadow: none; 
    border-left: solid 1px #ccc; 
} 

#custom-search-input .glyphicon-search{ 
    font-size: 23px; 
} 

Демо: https://jsfiddle.net/wvsxq45e/32/

Смежные вопросы