gpt4 book ai didi

twitter-bootstrap - 未应用 Bootstrap 3.1.0 模态大小

转载 作者:行者123 更新时间:2023-12-04 03:11:44 25 4
gpt4 key购买 nike

更新我的 bootstrap-sass 后 gem 至 3.1.0为了利用模态框上的新尺寸选项( .modal-lg.modal-sm ),我一直无法应用样式。我的代码如下:

<div aria-hidden="false" aria-labeldby="ccModalLabel" class="modal fade in" id="ccModal" role="dialog" style="display: block;">
<div class="modal-dialog modal-sm">
...content...
</div>
</div>

据我所知,这几乎与 the example 相同。在所有重要的属性中:
<div class="modal fade bs-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
...
</div>
</div>
</div>

然而,经检查, modal-sm类没有像示例中那样在我的代码中进行评估,这导致我认为它可能没有以某种方式包含在 gem 中,或者我错过了什么?除了调整大小之外,模态还可以以其他方式工作。

最佳答案

由于一些重大更改,我不能简单地更新我的 Bootstrap ,所以我所做的就是将其添加到我的 site.css

@media screen and (min-width: 768px) {
.modal-lg{
width:900px;
}

.modal-sm{
width:300px;
}
}

我希望这对其他人有帮助。

关于twitter-bootstrap - 未应用 Bootstrap 3.1.0 模态大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21503578/

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