Твиттер Typeahead и bootstrap-tags не работают в IE и Chrome

Резюме

Недавно я работал над системой сообщений для моего веб-сайта, которая состоит из плагина Twitter Typeahead и плагина bootstrap-tagsinput. Но у меня проблемы с дизайном моего css, когда я загружаю свою страницу в Internet Explorer и Google Chrome, тогда как она отлично работает в firefox (возможно, потому, что я использовал ее для разработки и редактирования начального стиля). Мне было интересно, как это исправить, поскольку я не очень разбираюсь в css, поэтому Iv'e попытался сделать этот вопрос максимально простым на глазах.

Прочитайте ниже для моих проблем.


Работа в Firefox (в разработке)

Ниже приведены изображения моего окна ввода, правильно работающего в firefox: enter image description here

enter image description here


Проблемы с дизайном Internet Explorer (EDIT: FIXED!)

  • Поле ввода не выравнивается с глификоном, пока я не добавлю тег. enter image description here
  • Текст ввода не привязан к тегам слева. enter image description here
  • Цвет шрифта и стиль шрифта не соответствуют остальной части формы. enter image description here

Проблема стилизации Google Chrome (EDIT: FIXED)

Выпадающий список Typeahead не выравнивается должным образом. (происходит только при первом теге, иначе работает нормально). enter image description here


код

Мой HTML:

<span id="remote" class="input-group" style="padding-bottom:10px;">
  <span class="input-group-addon"><span class="glyphicon glyphicon-user" style="font-size: 15px;"></span></span>
  <input type="text" autocomplete="off" name="msgUser" id="msgUser" class="form-control tagsInput" placeholder="Users Seperated by ,"/>
</span>

Typeahead CSS:

.accordion {
    margin-bottom:-3px;
}

.accordion-group { 
    border: none;
}

.twitter-typeahead .tt-query,
.twitter-typeahead .tt-hint {
  margin-bottom: 0;
}

.twitter-typeahead .tt-hint
{
    display: none;
}

.tt-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}
.tt-suggestion > p {
  display: block;
  padding: 3px 5px;
  clear: both;
  font-weight: normal;
  line-height: 1.428571429;
  color: #333333;
  white-space: nowrap;
}
.tt-suggestion > p:hover,
.tt-suggestion > p:focus,
.tt-suggestion.tt-cursor p {
  color: #ffffff;
  text-decoration: none;
  outline: 0;
  background-color: #428bca;
}

Bootstrap Tagsinput CSS:

.bootstrap-tagsinput { width: 100%; }

.label-info {
  background-color: #ededed !important;
}
.label-info[href]:hover,
.label-info[href]:focus {
  background-color: #ededed !important;
}

.bootstrap-tagsinput {
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  display: inline-block;
  padding: 4px 6px;
  margin-bottom: 0px;
  color: #555;
  vertical-align: middle;
  max-width: 100%;
  line-height: 22px;
  cursor: text;
}
.bootstrap-tagsinput input {
  border: none;
  box-shadow: none;
  outline: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  width: auto !important;
  max-width: inherit;
}
.bootstrap-tagsinput input:focus {
  border: none;
  box-shadow: none;
}
.bootstrap-tagsinput .tag {
  border: 1px solid #d9d9d9;
  margin-right: 2px;
  color: #555555;
}
.bootstrap-tagsinput .tag:hover {
  border-color: #b9b9b9;
}
.bootstrap-tagsinput .tag [data-role="remove"] {
  border: none;
  margin-left: 8px;
  cursor: pointer;
}
.bootstrap-tagsinput .tag [data-role="remove"]:after {
  content: "x";
  padding: 0px 2px;
}
.bootstrap-tagsinput .tag [data-role="remove"]:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 2px rgba(0, 0, 0, 0.15);
}
.bootstrap-tagsinput .tag [data-role="remove"]:hover:active {
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.15);
}

Ответ 1

Моя ошибка в том, что никто другой не смог решить этот вопрос, я должен был включить файлы javascript тоже, я исправил это, отредактировав эти строки в файле twitter typahead js:

var css = function() {
    "use strict";
    var css = {
        wrapper: {
            // HACK: make dropdown display in chrome properly
            //position: "relative",
            //display: "inline-block"
            position: "relative",
            verticalAlign: "top"

Обертка не сидела прямо в первом входе, и это, казалось, исправить.