开发者

jquery remove issue in IE, canvas tag

开发者 https://www.devze.com 2022-12-29 17:46 出处:网络
I am creating a line in canvas tag using jquery drawing library. After the line drawn the <div id=\"cool\"><canvas id=\"canid\"></canvas></div>

I am creating a line in canvas tag using jquery drawing library. After the line drawn the

<div id="cool"><canvas id="canid"></canvas></div>

Then on click the below code executed.

$('#canid').remove();

What happens in IE after removing, d开发者_开发知识库om with canvas end tag and also line is not removed.

Please help me out!.


<canvas> isn't supported natively by Internet Explorer - http://en.wikipedia.org/wiki/Canvas_element

Try looking into VML tags and the aforementioned ExCanvas


I found the problem. jquery drawing library is producing the dot(1 x 1) pixel div dot, to form it has lines. I can able to found a lots of dive below the canvas tag. So canvas tag is dummy and pixel div(s) are creating the line. I just removed the pixel links with class i mentioned to remove the line. It work great.

0

精彩评论

暂无评论...
验证码 换一张
取 消