2013-12-11 33 views
1

我想爲jquery UI tootltip設置自定義背景圖像。
它是否可行?
我使用jquery-ui-1.10.3.custom.js。jquery UI工具提示的自定義背景圖像

我試過以下css.But不完美。

.ui-tooltip-content { 
    position: relative; 
    padding: 1em; 
    background: url("images/tooltipImage.png") scroll 0 0 transparent; 
} 

任何想法?

回答

1

這是你在找什麼?

.ui-tooltip { 
    background: url("http://www.psdgraphics.com/file/light-wooden-background.jpg") scroll 0 0 transparent; 
    background-size:2000px 60px; 
    background-repeat:no-repeat; 
} 

參見示例:

http://jsfiddle.net/trevordowdle/kyBwU/1347/

+0

它的工作原理...太感謝你了... – Nandu