0

我正在尝试将 MixStream Flash Player 嵌入我的网站。

脚本如下:

<script>
// MixStream Flash Player, http://mixstreamflashplayer.net/ 
var flashvars = {};flashvars.serverHost ="s8.streammonster.com:8241/;";flashvars.getStats = "1";flashvars.autoStart = "1";flashvars.textColour = "";flashvars.buttonColour = "";var params = {};params.bgcolor= "";params.wmode="transparent";
</script>

<script type="text/javascript" src="http://mixstreamflashplayer.net/v1.3.js"></script>

当我将上面的代码添加到我的索引页面时,生成的 html 代码如下:

<object type="application/x-shockwave-flash" id="mixstreamPlayerFlash" data="http://mixstreamflashplayer.net/flash/MixStreamPlayer.swf" width="335" height="50"><param name="bgcolor" value="000"><param name="wmode" value="transparent"><param name="flashvars" value="serverHost=s8.streammonster.com:8241/;&amp;getStats=1&amp;autoStart=0&amp;textColour=&amp;buttonColour=">
</object>

我想做的是定位这个嵌入式闪存。(如定义保证金等)我怎样才能做到这一点?

非常感谢您的帮助!

4

1 回答 1

0

您可以只使用object标签的 id 将 CSS 应用于元素。就像是:

#mixstreamPlayerFlash {
    position: relative;
    top: 10px;
    left: 10px;
}
于 2013-11-24T00:38:30.470 回答