html标签object和embed,html标签object和embed的区别
The code in?bold?above is the actual code that you need to place in your page to embed a FusionCharts chart.
In the above code, we've
used and tags to embed the 3D Column Chart (Column3D.swf) within the HTML page.
used &dataUrl=Data.xml under FlashVars parameter to indicate the source of data to chart – Data.xml in this case. This method of indicating data is referred to as dataURL method of providing data.
specified chart width as 900 and chart height as 300.
To display a Flash movie correctly in a browser, HTML page should contain specific tags that specify the Flash movie file to be opened and played. There are two tags which are intended for it: and tags.
These two tags are required to display a Flash movie in different Internet browsers properly. The tag is used by Internet Explorer under Microsoft Windows and the tag is used by Netscape Navigator under Microsoft Windows or Mac OS. Each of these two tags acts in the same way, however using only one tag may cause incompatibility of one of the browsers. To ensure that most browsers will play your Flash movies, you should place the tag nested within the tag as shown in the example. ActiveX-enabled browsers will ignore the tag inside the tag. Netscape and old Microsoft browsers will not recognize the tag and will use only the tag to load the Macromedia Flash Player. ??"
結(jié)論:
標(biāo)簽支持IE,標(biāo)簽支持舊版本的IE和其他的瀏覽器(如FF、chrome等)。所以在寫頁面的時(shí)候最好是按上面代碼中的方式,將embed的內(nèi)容嵌入到object標(biāo)簽內(nèi),這樣就可以防止有的瀏覽器出現(xiàn)不兼容的情況了。
ps:為方遍測試,上面代碼中的多媒體文件請自行替換本地文件路徑及文件名。
總結(jié)
以上是生活随笔為你收集整理的html标签object和embed,html标签object和embed的区别的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 地下城与勇士关于加游戏好友显示在线,但是
- 下一篇: 摩尔庄园手游怎么给奶牛挤奶