Twitter Bootstrap sideways caret

前端 未结 9 762
执念已碎
执念已碎 2021-01-31 03:09

I\'m using Twitter Bootstrap and some custom css (found here) to have dropdown menus open up on mouseover.

I am using the \"caret\" on a on the root menu items to show

9条回答
  •  感动是毒
    2021-01-31 03:35

    Just add the css to rotate the caret on mouse hover

    .navbar-nav>li>.dropdown-menu{
        display:block;
        visibility:hidden;
    
    }
    .navbar-nav>li:hover>.dropdown-menu{
        visibility:visible;
    }
    .navbar-default .navbar-nav>li:hover>a .caret{
        transform:rotate(-90deg);
        transition:all 0.3s ease-in-out;
    }
    

提交回复
热议问题