上午嘗試刪除DIV當點擊喜歡嘗試刪除iframe的ID與查詢,同時點擊Facebook等
我的代碼
<div id="closebox" style="position: absolute;margin-right: 2px; opacity: 0;/* width:27px; */ /* height: 20px; */ /* overflow: hidden; */ width: 47px; height: 20px; overflow: hidden; right: 202px; bottom: 15px;">
<iframe id="closebox1" src="http://www.facebook.com/plugins/like.php?href=https://www.facebook.com/0000000&layout=button_count&show_faces=false&width=60&action=like&colorscheme=light&height=31" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:45px; margin-top:3px;padding-bottom: 0px;
padding-top: 0px; height:31px; z-index: 0; /* position: absolute; */opacity: 0;" allowtransparency="true"></iframe>
</div>
<button type="button" class="btn btn-default" data-dismiss="modal">نعم </button>
<script type="text/javascript">
$('#closebox1').click(function() {
$('#closebox1').hide();
});
</script>
我需要的時候點擊進入DIV ID closebox
或closebox1
刪除IFRAME ID closebox1
不能正常工作,因爲點擊此處進入iframe內容就好像botton不是div
你的標題與你的問題寫什麼衝突。 –
只需要刪除iframe,當點擊像 –