我已經爲輸入的url創建了url預覽框。在div中添加關閉按鈕以關閉框
預覽顯示在div框中。我想在右上角添加關閉選項。 如何做到這一點,以便當用戶點擊它框應被禁用。
這是我的fiddle。
<a class="fragment" href="google.com">
<div>
<img src ="http://placehold.it/116x116" alt="some description"/>
<h3>the title will go here</h3>
<h4> www.myurlwill.com </h4>
<p class="text">
this is a short description yada yada peanuts etc this is a short description yada yada peanuts etc this is a short description yada yada peanuts etc this is a short description yada yada peanuts etcthis is a short description yada yada peanuts etc
</p>
</div>
</a>
代碼裏面php
禁用或隱藏盒子? – Martin