Possible to get Excanvas to work in IE 8?

后端 未结 7 1985
无人及你
无人及你 2020-11-30 08:03

I used to work on a jQuery plugin named \'BeautyTips\' and it was working just fine. But, since I\'ve installed IE 8, this plugin stop working because it needs Excanvas to m

相关标签:
7条回答
  • 2020-11-30 08:30

    if anyone still have this issue: Beauty Tips version 0.9.5 fixes this issue. however if you have to use earlier version (like i do, as the new version introduced an issue of tips being closed prematurely in my page), you should replace line 530 with these lines:

    var canvas = document.createElement('canvas');  
    $(canvas).attr('width', (numb($text.btOuterWidth(true)) + opts.strokeWidth*2)).attr('height', (numb($text.outerHeight(true)) + opts.strokeWidth*2)).appendTo($box).css({position: 'absolute', top: $text.btPosition().top, left: $text.btPosition().left, zIndex: opts.boxzIndex});
    

    hope it helps.

    0 讨论(0)
提交回复
热议问题