jquery ui tooltip custom class on page load

前端 未结 2 884
误落风尘
误落风尘 2020-12-19 11:05

I am using jquery ui tooltip on my textboxes and I have defined a custom class like this and

.ui-tooltip1 {
    padding: 8px;
    position: absolute;
    z-         


        
2条回答
  •  清酒与你
    2020-12-19 11:56

    I had the same problem. Here what helped me:
    Both the jquery-ui tooltip classes and your own custom class are assigned to the tooltip element ui tooltip having both ui-classes and your custom class.
    This SO entry: Multiple !important class declarations and precedence helped me out: "If the same property is declared in both rules, the conflict is resolved first through specificity, then according to the order of the CSS declarations. The order of classes in the class attribute is not relevant.".

    So I could solve the problem by first calling the ui-css and then my own css:

    
    
    

提交回复
热议问题