在 div 中添加关闭按钮以关闭框
2022-08-30 12:12:36
我为输入的URL创建了一个URL预览框。
预览显示在 div 框中。我想在右上角添加一个关闭选项。如何做到这一点,以便当用户点击其框时应该被禁用?
这是我的小提琴。
<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