【问题标题】:Fit more tracks than 8 in the Spotify Play Button widget在 Spotify 播放按钮小部件中容纳超过 8 个曲目
【发布时间】:2015-04-22 16:01:16
【问题描述】:

我有这个网站: http://www.johnseabrook.com/playlists/

问题是我的客户想要显示完整的播放列表(有些有多达 15 首歌曲)。现在它仅限于 8 首歌曲,每个 Spotify 的最大高度为 720 像素。这周围有破解吗?我尝试将 Iframe 高度(以像素和百分比为单位)更改为更大,但没有任何效果。提前谢谢!!!

【问题讨论】:

    标签: iframe embed spotify


    【解决方案1】:

    Spotify 播放按钮的工作方式是您实际上还需要增加 width,例如

    <iframe src="https://embed.spotify.com/?uri=spotify:user:1215385803:playlist:1BSFYwDOOQEGCA71QUJJw9" width="720" height="1280" frameborder="0"></iframe>
    

    【讨论】:

    • 谢谢你,迈克尔你是一个救生员,它完全奏效了!没想到这么简单!
    • 我必须给@JMPerez一些功劳,实际上是他找到了解决方案,我毫不犹豫地偷了分数。
    猜你喜欢
    • 1970-01-01
    • 2012-07-21
    • 1970-01-01
    • 2018-07-10
    • 1970-01-01
    • 1970-01-01
    • 2012-05-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多