Changing Dropdown Icon on Bootstrap 4

前端 未结 6 1412

On Bootstrap 3 this was pretty easy, you just had to change span and add whatever icon you wanted instead. But that doesn\'t seem the case with Bootstrap 4. Or maybe I\'m missin

6条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 04:28

    Just type in css border none. The arrow is made from borders, if you remove the borders then there is no arrow. After you remove the border you can add your own icons.

    .dropdown-toggle::after{
     border: none;
     content: '\icon';
    }
    

提交回复
热议问题