How to change the bootstrap caret pointing direction on click event

后端 未结 4 1294
慢半拍i
慢半拍i 2021-02-09 15:32

I\'m using 2.3.2 bootstrap

As I can change the position of the caret icon when I click the menu button.

I need that when I click the icon caret pointing up and

4条回答
  •  囚心锁ツ
    2021-02-09 16:17

    you can add this

    .nav .dropdown.open .caret{
        border-top: none;
        border-bottom: 4px solid #000000;
    }
    

    Updated Fiddle

提交回复
热议问题