是soundcloud html5小部件iframe styleable通过css? [英] Is the soundcloud html5 widget iframe styleable via css?

查看:158
本文介绍了是soundcloud html5小部件iframe styleable通过css?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用html5小部件+它的api(http://developers.soundcloud.com/docs/html5-widget)
我的问题:可以通过CSS样式的小部件吗?

I'd like to use the html5 widget + it's api (http://developers.soundcloud.com/docs/html5-widget) My question: can tha widget be styled via CSS? FireBug shows style information, once the player is loaded, and I'm wondering, if it is possible to change those styles?

推荐答案

不,这是不可能的。小部件插入到iframe中的页面,我不认为可以从外部更改iframe内的样式。唯一的造型是通过颜色url参数改变按钮和波形的颜色。

No, this isn't possible. The widget is inserted into the page in an iframe and I don't think it's possible to change the styles inside an iframe from outside. The only "styling" which is catered for is changing the colour of the buttons and waveform, via the "color" url parameter.

例如,这里有一个用户的声音部件有漂亮的粉红色按钮和波形高亮显示:

For example, here's a user's sounds widget with pretty pink buttons and waveform highlights:

http://w.soundcloud.com/player/?url= http%3A%2F%2Fapi.soundcloud.com%2Fusers%2F2& show_artwork = true& show_comments = false& color = ff00ff& show_playcount = false& liking = false

以下是重新格式化可读性的网址:

Here's the url reformatted for legibility:

http://w.soundcloud.com/player/
?url=http%3A%2F%2Fapi.soundcloud.com%2Fusers%2F2
&show_artwork=true
&show_comments=false
&color=ff00ff    <-----
&show_playcount=false
&liking=false

这篇关于是soundcloud html5小部件iframe styleable通过css?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆