2013-06-19 662 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