日期:2014-05-18  浏览次数:20446 次

svg图片老是提示:“单击以激活并使用此控件”,怎么解决啊
svg图片老是提示:“单击以激活并使用此控件”,怎么解决啊

------解决方案--------------------
是在IE中浏览的吧?好像是自从 IE打了某个补丁之后就会出现这种情况,主要是为了防止某些恶意的 ActiveX吧,用 Maxthon一类的浏览时没有这个提示。
------解决方案--------------------
http://www.makewing.com/lanren/code/20070602/code142423.shtml

去除FLASH虚线框的方法 不知道好不好用 可以试试
------解决方案--------------------
这样处理即可

<span id= 'WebObjectControls2 '> </span> <script type= 'text/javascript '>
// <![CDATA[
function ShowSVG(containerElement, url, Width, Height)
{
if (!document.getElementById(containerElement)) return;
var str = ' ';
str += ' <embed src= " ' + url + ' " pluginspage= "http://www.adobe.com/svg/viewer/install/ " type= "image/svg+xml " style= "width: '+ Width + ';height: '+ Height + ' "> </embed> ';
document.getElementById(containerElement).innerHTML = str;
}
ShowSVG( 'WebObjectControls2 ', 'window_open.svg ', '400px ', '320px ');
//]]>
</script>