开发者

display alt image in IE, because it doesnt display sparkline

开发者 https://www.devze.com 2023-03-05 11:27 出处:网络
We use peity to display sparkline graphs. The code we have JS is: ( I hope it is correct , works fien in chrome and ff )

We use peity to display sparkline graphs.

The code we have JS is: ( I hope it is correct , works fien in chrome and ff )

$(function(){
      $(".line").peity("line",{
        colour: "#C6D9FD",
        strokeColour:"#4D89F9",
        strokeWidth:1,
        width:200,
        height:44
      }

); });

The code to display the sparkline is:

<span class="line">1,23,4,7,5,9,10</span>

Within IE, it does not display the sparkline, and rather than have this show:

1,23,4,7,开发者_开发百科5,9,10

I would like to display something else, perhaps a small png image etc. Is this dooable. Like:

if ie display blah blah blah


You can write if ($.browser.msie && $.browser.version < 9)

0

精彩评论

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