您好我試圖讓一個div刪除點擊喜歡它,但不能按鈕Facebook的後做 這裏是我的代碼的JavaScript:的onclick刪除DIV是iframe
<div onclick="this.parentNode.parentNode.removeChild(this.parentNode);">
<iframe id='theiframe' scrolling='no' frameBorder='0' allowTransparency='true' src='http://www.facebook.com/widgets/like.php?href="www.facebook.com/makestream"&layout=standard&show_faces=true&width=53&action=like&colorscheme=light&height=80' style='width:53px;height:23px;overflow:hidden;border:0;opacity:"0.8";filter:alpha(opacity="0.8");'></iframe>
</div>
有沒有辦法刪除DIV或點擊Facebook像按鈕後ifreme?
那真的很有幫助謝謝你非常的配偶你救了我的命... ahhaha –
我剛剛通過添加一個鏈接更新了我的答案,這可能對你有所幫助。 –