CSS Caret not working in IE Edge

I have a drop-down clipping that works correctly in all browsers except Microsoft Edge. In Microsoft Edge, the carriage is divided into two parts with a black line in the middle. I am attaching a screenshot and css ad.

.caret {
    display: inline-block;
    width: 0px;
    height: 0px;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid\9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

enter image description here

+4
source share
1 answer

This should work in different browsers:

HTML:

<span class="caret"></span>

CSS

.caret {
    width: 0; 
    height: 0; 
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid red;
    border: none\9; 
}
0
source

All Articles