gpt4 book ai didi

css - 如何从 Bulma 模态卡标题中删除关闭按钮?

转载 作者:太空宇宙 更新时间:2023-11-04 06:35:03 24 4
gpt4 key购买 nike

Bulma css for modalModal Title

之前添加一个自动关闭按钮 x
   <div class="modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Modal title</p>
<button class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<!-- Content ... -->
</section>
<footer class="modal-card-foot">
<button class="button is-success">Save changes</button>
<button class="button">Cancel</button>
</footer>
</div>
</div>

我想知道如何在不重新编译整个东西的情况下删除它?

最佳答案

您可以只注释或删除此处的行,它将摆脱 X 按钮

<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.css" rel="stylesheet"/>
<div class="modal is-active">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Modal title</p>
<!--<button class="delete" aria-label="close"></button> -->
</header>
<section class="modal-card-body">
<!-- Content ... -->
</section>
<footer class="modal-card-foot">
<button class="button is-success">Save changes</button>
<button class="button">Cancel</button>
</footer>
</div>
</div>

关于css - 如何从 Bulma 模态卡标题中删除关闭按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54313446/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com