前提・実現したいこと
IE11とChromeの表示ずれを修正したい
発生している問題・エラーメッセージ
input要素に
.form-control {
width: auto;
display: inline-block;
vertical-align: middle;
}
とCSSで記述したところchromeでは親要素内に収まるのですが、IE11だとはみ出してしまいます。
IE11で収まるようにするにはどうすればよいのでしょうか?
###追記
IEは仕様なので変えれず。フレームワークはBootstrap3を使用しています。
該当箇所のHtml
<table class="table table-bordered"> <tr> <td class="col-xs-2">コード番号</td> <td class="col-xs-2"> <input type="text" class="form-control" /> </td> <td class="col-xs-2">氏名</td> <td class="col-xs-6"> <label class="col-xs-1 control-label" for="">姓</label> <div class="col-xs-5"> <input type="text" class="form-control" id="" /> </div> <label class="col-xs-1 control-label" for="">名</label> <div class="col-xs-5"> <input type="text" class="form-control" id="" /> </div> </td> </tr> </table>
これだけでは原因を探すのは困難なので、再現するHTMLも提示してもらえるでしょうか?
IEは使わせない、って選択肢も。 https://doda.jp/d-c-b/article/180130.html
折角Bootstrap使っているのにわざわざ独自定義で崩してたら意味がないのでは。
input要素(text属性)にリセットCSSを掛ければ良いのでは?