positioning jQuery tooltip

前端 未结 3 1169
眼角桃花
眼角桃花 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:11

    There is nothing wrong with your code. However, without seeing your HTML, it is hard to say why it isn't working.

    Make sure you have loaded jQueryUI script: here. Also make to wrap your code with $(document).ready(). Let me know if you have any other questions.

    DEMO: http://jsfiddle.net/dirtyd77/SLGdE/16/

提交回复
热议问题