Flash 播放器位于 div 之外(仅在 IE 中)
我使用以下代码在 div 标签内显示 fusionchart。该图表在 Chrome 和 FF 中正确呈现,但在 IE 中它超出了我的 div 标签的边界。知道我缺少什么吗?
<div id="chart_div" style="width: auto;border: solid 1px #ff0000;><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="chart" >
<param name="movie" value="../FusionCharts/Column2D.swf" />
<param name="FlashVars" value="&dataURL=' . 'chart_data/'.$xml_file . '&chartWidth=100%&chartHeight=500px">
<param name="quality" value="high" />
<embed src="../FusionCharts/Column2D.swf" flashVars="&dataURL=' . 'chart_data/'.$xml_file . '&chartWidth=100%&chartHeight=500px" quality="high" width="100%" height="500px" name="chart" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object></div>
IE似乎总是很难...
I'm using the following code to display a fusionchart inside a div tag. The chart is rendered correctly in Chrome and FF, but with IE it's outside the boundaries of my div tag. Any idea what I'm missing?
<div id="chart_div" style="width: auto;border: solid 1px #ff0000;><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="chart" >
<param name="movie" value="../FusionCharts/Column2D.swf" />
<param name="FlashVars" value="&dataURL=' . 'chart_data/'.$xml_file . '&chartWidth=100%&chartHeight=500px">
<param name="quality" value="high" />
<embed src="../FusionCharts/Column2D.swf" flashVars="&dataURL=' . 'chart_data/'.$xml_file . '&chartWidth=100%&chartHeight=500px" quality="high" width="100%" height="500px" name="chart" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object></div>
IE always seems to be difficult...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您缺少结束
/
尝试更改
为
You are missing a closing
/
Try changing
to
您的问题是由于未关闭的元素和缺少的引用造成的。你需要改变,
到这个......
这个......
到这个......
这应该可以解决你的问题。
快乐的编码芽。
Your problem is because of unclosed elements and missing qoutes. You need to change,
To this...
And this...
To this...
This should solve your problem.
Happy coding bud.
您能尝试以这种方式设置 Flash 变量吗?
&chartWidth=100%&chartHeight=500
(不带 px)另外,
您可以尝试提及:
Could you please try setting Flash vars in this fashion?
&chartWidth=100%&chartHeight=500
(without the px)Also,
You can try mentioning :
<object width="100%" ..>
您在
的 style 属性末尾缺少一个右引号。
如果有帮助的话,也许可以尝试添加
overflow:hidden
。You're missing a close quote at the end of the
<div>
's style attribute.Maybe try adding
overflow:hidden
if it helps.