是否可以在表中嵌入Flash播放器并保留表属性

时间:2012-07-08 21:12:30

标签: html flash html-table embed

我想将一个音乐(flash)播放器嵌入带有可点击图像的表格中,但嵌入代码似乎抛弃了表格属性 - 它扩展了表格的宽度。

是否可以将播放器嵌入与图像相同的行,同时仍保留表格宽度?

以下是我一直在使用的内容:

<table width="620"  border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
        <div align="left">
            <object height="18" width="100%"> 
                <param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1253725&amp;auto_play=false&amp;player_type=tiny&amp;font=Georgia&amp;color=9a6600&show_playcount=false&default_width=375&default_height=40&show_user=false"></param> 
                <param name="allowscriptaccess" value="always"></param> 
                <param name="wmode" value="transparent"></param>
                <embed wmode="transparent" allowscriptaccess="always" height="18" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1253725&amp;auto_play=false&amp;player_type=tiny&amp;font=Georgia&amp;color=9a6600&show_playcount=false&default_width=375&default_height=40&show_user=false" type="application/x-shockwave-flash" width="100%"></embed> 
            </object>
        </td>
        <td>
            <div align="right"><img src="http://dl.dropbox.com/u/31856944/Virb/splash_freedownload-2.png" border="0" width="245" height="42" usemap="#Map" /></div>
        </td>
    </tr>
    <tr>
        <td>
            <div align="right"><img src="http://dl.dropbox.com/u/31856944/Virb/splash_share-2.png" border="0" width="620" height="31" usemap="#Map2" /></div>
        </td>
    </tr>
</table>

2 个答案:

答案 0 :(得分:0)

在第一行(<tr>)中有两个单元格,在第二行中只有一个单元格。 此外,在第一行中,第一个单元格div没有结束标记。

首先尝试修复此错误,看看是否有帮助。

答案 1 :(得分:0)

<table width="620"  border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
        <div style="{ width: 300px; height: 200px; }">
            <object height="18" width="80%"> 
                <param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1253725&amp;auto_play=false&amp;player_type=tiny&amp;font=Georgia&amp;color=9a6600&show_playcount=false&default_width=375&default_height=40&show_user=false"></param> 
                <param name="allowscriptaccess" value="always"></param> 
                <param name="wmode" value="transparent"></param>
                <embed wmode="transparent" allowscriptaccess="always" height="18" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F1253725&amp;auto_play=false&amp;player_type=tiny&amp;font=Georgia&amp;color=9a6600&show_playcount=false&default_width=375&default_height=40&show_user=false" type="application/x-shockwave-flash" width="100%"></embed> 
            </object>
        </div>
        </td>
        <td>
            <div align="right"><img src="http://dl.dropbox.com/u/31856944/Virb/splash_freedownload-2.png" border="0" width="245" height="42" usemap="#Map" /></div>
        </td>
    </tr>
    <tr>
        <td>
            <div align="right"><img src="http://dl.dropbox.com/u/31856944/Virb/splash_share-2.png" border="0" width="620" height="31" usemap="#Map2" /></div>
        </td>
        <td>empty</td>
    </tr>
</table>

正在努力......

  • 关闭所有打开的标签
  • 每行使用相同的列号