位置错误消息(警报)在右下角使用Bootstrap和CSS
我正在尝试显示一些错误消息,假设
<div class="alert alert-danger alert-dismissible fade show col-12" role="alert">
This is an error
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-danger alert-dismissible fade show col-12" role="alert">
This is an error
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
使用HTML,CSS,Bootstrap堆叠在屏幕右下角 就像这样右下角的消息的图像
I'm trying to show some error messages, let's say
<div class="alert alert-danger alert-dismissible fade show col-12" role="alert">
This is an error
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-danger alert-dismissible fade show col-12" role="alert">
This is an error
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
Stacked in the bottom right corner of the screen, using HTML, CSS, Bootstrap
Just like thisImage of messages in the bottom right corner
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
您可以创建一个错误包装器div并将其定位为绝对。
例如。
You can create an error wrapper div and position it absolute.
eg.