2013-06-19 720 views

回答

1

查看其页面的源代码给你他们使用的代码:

<iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 147px; margin: 0px; left: 0px; visibility: visible; height: 24px;" tabindex="0" vspace="0" width="100%" src="https://www.youtube.com/subscribe_embed?bsv&amp;usegapi=1&amp;channel=[YOUR CHANNEL NAME HERE]&amp;theme=dark&amp;hl=en-US&amp;origin=http%3A%2F%2F[YOUR HOSTNAME HERE]&amp;ic=1&amp;jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en.Hm9QrP5wPuw.O%2Fm%3D__features__%2Fam%3DEQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAItRSTOJmMfO7AjAhJbN5yM-BshnzKg53Q#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Conload&amp;id=I0_1371683853533&amp;parent=http%3A%2F%2F[YOUR HOSTNAME HERE]&amp;rpctoken=33681162" data-gapiattached="true"></iframe> 

(确保你替换的[显示频道名称HERE]和[您的主机名HERE]块)

+0

完美! thnx很多,顺便说一句,你可以告诉我你是如何找到它(步骤),因为我通过铬(检查元素)尝试,但我找不到(我发现只有一部分代码)你给我的完整代码。 – Alex