0

我想在带有可点击图像的表格中嵌入音乐(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>
4

2 回答 2

0

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

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

于 2012-07-08T21:34:21.967 回答
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>

正在工作中 ...

  • 关闭所有打开的标签
  • 对每一行使用相同的列号
于 2012-07-08T22:02:10.020 回答