为 <button>
或 <a>
元素添加 .close
类,就会为它赋予一个象征关闭的图标,点击图标,就可以让模态框和警告框消失。如:
<button type="button" class="close" aria-label="Close"><span aria-hidden="true">×</span></button>
<a class="close"><span aria-hidden="true">×</span></a>
效果如图 2‑82所示:
图2-82 关闭按钮
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。