positioning jQuery tooltip

前端 未结 3 1127
眼角桃花
眼角桃花 2021-01-05 10:10

I\'m trying to customise the positioning of my tooltips, using jQuery UI Tooltip and this code:

$(\".karma\").tooltip({
  position: {
    my: \"center bottom         


        
3条回答
  •  情话喂你
    2021-01-05 11:05

    If you got here because your positioning addition wasn't working (e.g. at: "right + 10"), then the solution is to remove any spaces around the operator.

    Change at: "right + 10" to at: "right+10", and it should work.

提交回复
热议问题