【发布时间】:2021-10-04 17:54:23
【问题描述】:
我正在尝试做一个模态框,它只显示“内部”。
现在我看到了这个:Screenshot
但我想看看这个:Screenshot
代码:
<div class="modal-content">
<div class="modal-body">
<p>Text1................................</p>
<p>Text2................................</p>
</div>
<div class="modal-footer" style="float:right;">
<button class="next-button"><i class="fa fa-angle-right"></i></button>
</div>
</div>
<style>
.close {
display:none;
}
.next-button:active {
outline: none;
border: none;
}
.next-button:focus {
outline: none;
border: none;
}
.next-button:after {
outline: none;
border: none;
}
</style>
所以,我想删除细灰色边框之外的所有内容 - 空白和十字。 谁能告诉我,这是如何实现的?谢谢
编辑: 我选择了另一种解决方案,它没有使用 javascript,让它变得更加简单: https://gist.github.com/conficient/ba98d1662c659e170ec16650acea05c8
【问题讨论】:
-
请分享我们的css代码
-
@Andrew 当然,但它几乎没有包含任何内容。我已经更新了问题
-
你使用的是引导程序,对吧?
-
@kalgoritmi 是的,我是
-
分享你的代码
标签: html modal-dialog