jquery – 手动定位调整qtip工具提示(不工作)

 $('#nav a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },position: {
     corner: {
        target: 'topLeft',tooltip: 'middleRight'
                }
                },style: {
       name: 'dark',width: 230,padding: 3,bottom: 10,textAlign: 'center'
      }
 // Give it some style
   });

我想模拟:css:position:relative; bottom:10px所以工具提示与目标垂直对齐(见图),但我无法完成它

这样试试

$('#nav a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },position: 'relative',textAlign: 'center'
      }
 // Give it some style
   });

但是工具提示的文本被移动了,而不是工具提示本身,

我怎样才能做到这一点?

编辑

尝试’调整’属性,但有一个我找不到的语法错误

$('#nav a[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },position: {

      adjust: {
              x: 10px,y: 10px
       },corner: {
               target: 'topLeft',tooltip: 'middleRight'
                }
     },textAlign: 'center'
      },// Give it some style
   });
最佳答案
您可以使用“position”属性组的“adjust”属性,如下所示:

position: {
    corner: {
        target: 'topLeft',tooltip: 'middleRight'
        },adjust: {
        x: 10,y: 10
        }
    }

我提供的数字是任意的.您可以随意使用它们来定位.

相关文章

Css常用的排序方式权重分配 排序方式: 1、按类型 ...
原文:https://www.cnblogs.com/wenruo/p/9732704.html 先上...
css属性:word-wrap:break-word; 与 word-break:break-all 的...
https://destiny001.gitee.io/color/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...
css之background的cover和contain的缩放背景图 对于这两个属...