简体   繁体   English

如何抑制jQuery工具提示的边框

[英]How to suppress border for jquery tooltip

I'd like to suppress the border which seems to be a default in the jquery tooltip (as I want to use a background image instead). 我想抑制边框,这似乎是jquery工具提示中的默认边框(因为我想改用背景图片)。 Looked quite a bit around, but all examples I've found do work with the default border. 到处都是,但是我发现的所有示例都可以使用默认边框。 I can't suppress it by using "border: none". 我无法通过使用“ border:none”来抑制它。 Here is a fiddle . 这是一个小提琴 Can someone give me a hint? 有人可以给我提示吗?

I used before another Tooltip javascript. 我之前使用过另一个工具提示javascript。 There, the "vertical-align: middle" worked well. 在那里,“垂直对齐:中间”效果很好。 The jquery-tooltip seems not to accept it. jquery-tooltip似乎不接受它。 I would appreciate an tip how to solve this. 我将不胜感激如何解决此问题的技巧。

Thanks for your help! 谢谢你的帮助!

.ui-tooltip {
background: url("http://geodev.grid.unep.ch/gegslive/images/box.png") no-repeat 0 0 transparent;
width: 420px;
height: 200px;
color: black;
border: none;
padding: 0;
font-size: 80%;
vertical-align: middle; 
}


<div><a href='#' title='To improve recognition of the social, economic and ecological values of trees, forests and forest lands, including the ...'>Chapter 11, paragraph 21(a)</a></div>

Add box-shadow:none; 添加box-shadow:none; to your styles to remove the shadow from it. 您的样式以消除阴影。

It is the shadow and not the border which you are seeing in your fiddle. 它是您在小提琴中看到的阴影而不是边界。

You need to write styles to adjust the background image positioning though. 但是,您需要编写样式来调整背景图像的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM