EasyUI Forum
December 01, 2025, 09:32:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How can set z-index in Tooltip?  (Read 9536 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« 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);
         }
« Last Edit: September 17, 2016, 05:23:48 AM by kingor2001 » Logged
jarry
Administrator
Hero Member
*****
Posts: 2302


View Profile Email
« Reply #1 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!