Disabled dropdown menu items using twitter bootstrap

前端 未结 8 1087
挽巷
挽巷 2021-02-03 20:16

I use markup to display a dropdown menu using Twitter Bootstrap.

8条回答
  •  [愿得一人]
    2021-02-03 20:31

    I prefer this (LESS):

    /* Disable link */
    a.disabled, 
    a.disabled:visited ,
    a.disabled:active,
    a.disabled:hover {  
      color: #999 ;
      cursor: default;
    }
    .dropdown-menu {
      a.disabled, 
      a.disabled:visited ,
      a.disabled:active,
      a.disabled:hover {  
        color: #999 ;
        cursor: default;
        background-color: white;
      }
    }
    

提交回复
热议问题