Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Dropdown doesn't style correctly in Internet Explorer

I'm using twitter bootstrap classes in my angular project. For a dropdown menu the styles work fine in Chrome but when I load it into IE 11, it does not style properly. In particular the dropdown arrow button.

Has anyone else had this issue with IE? How would I resolve this? Please see a comparison photo below of my issue.

enter image description here

My html section below as well, any comments welcome thanks in advance!

 <select class=" btn btn-default"  ng-options="obj for obj in data.finding"
                      ng-model="gapSection.finding"  >
                      <option value="">Please select</option>
</select>
like image 306
Ka Tech Avatar asked Jan 28 '15 05:01

Ka Tech


People also ask

Does Bootstrap work in Internet Explorer?

Supported browsers Bootstrap supports the latest, stable releases of all major browsers and platforms. On Windows, we support Internet Explorer 10-11 / Microsoft Edge.

Why isn't my Bootstrap dropdown not working?

Why is my drop down menu not working in bootstrap? Solution : The dropdown should be toggled via data attributes or using javascript. In the above program, we have forgotten to add a data attribute so the dropdown is not working. So add data-bs-toggle="dropdown" to toggle the dropdown.

Does Bootstrap work in ie11?

Bootstrap 5 drops support for Internet Explorer 11, but you can add support back by simply adding a CSS file and a few JavaScript polyfills.

Does Bootstrap 5 support ie?

Internet Explorer is not supported. If you require Internet Explorer support, please use Bootstrap v4.


2 Answers

I just solved for IE using :

select::-ms-expand {
    border:none;
    background:#fff;
}

Source

like image 129
Shubh Avatar answered Sep 28 '22 07:09

Shubh


Add this on your css file

select::-ms-expand {
  display: none;
}
like image 44
Niet Avatar answered Sep 28 '22 07:09

Niet