简体   繁体   中英

Bootstrap 3 form-control class issue?

I am using twitter bootstrap 3. I have an issue with table colspan attribute in chrome only.As described in the bootstrap documentation that form-control class has 100% width, but when i applied it on the input box inside the colspan 2 than the width of input box is not 100%.

Please check this fiddle (Issue with chrome only)

Whats the wrokaround?

set the containing div width to 100% and it should fix the issue.

<tr>
     <td class="form-group" colspan="2">
       <div class="input-group" style="width:100%;"> <!--------right here-->
       <span class="input-group-addon"><i class="glyphicon glyphicon-envelope">
       </i>
       </span>
       <input type="text" class = "form-control", placeholder = "Email" />
      </div>
     </td>
    </tr>

also, might i ask why you're not using divs with class "rows" and "cols"?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM