EasyUI Forum

General Category => General Discussion => Topic started by: kingor2001 on September 17, 2016, 05:14:42 AM



Title: How can set z-index in Tooltip?
Post by: kingor2001 on September 17, 2016, 05:14:42 AM
How can set  z-index in Tooltip?
If I customize the content in the menubutton by class 'menu-content' and tooltip a "<a>test</a>" in the content, '<a>test</a>''s tooltip can't been seen because it's zindex less than the menubutton zindex.
Now I deal it as follows:
onShow : function() {
            $(this).tooltip('tip').css("z-index", 200000);
         }


Title: Re: How can set z-index in Tooltip?
Post by: jarry on September 18, 2016, 03:17:24 PM
Your code has no problem. Please look at this example, it shows how to custom the tooltip style.
http://www.jeasyui.com/demo/main/index.php?plugin=Tooltip&theme=default&dir=ltr&pitem=Custom%20Style