javascript - 不使用 bootstrap 的 Bootstrap 风格模态

标签 javascript html css modal-dialog

我想在我的元素中使用引导模式,但是当我加载引导样式表时,它会阻止我的网站,因为它似乎覆盖了我的很多 CSS。

有谁知道我可以使用 Bootstrap 样式脚本而无需加载整个 bootstrap 只是为了使用模态功能?或者有没有其他方法可以使用 bootstraps 模式而不中断我的 CSS。干杯

PS。是的,我尝试在 CSS 样式表之前加载 bootstrap,它仍然会覆盖我的 CSS。

最佳答案

我认为你可以为 bootstrap 自定义 css。

使用此链接来执行此操作:https://getbootstrap.com/docs/3.3/customize/

enter image description here

希望这有帮助!

关于javascript - 不使用 bootstrap 的 Bootstrap 风格模态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48043892/

相关文章:

html - 在 CSS 中,如何为 block 元素计算 "height"?

javascript - 选择窗口 html

javascript - 如何使用 javascript_include_tag 从 vendor/assets/javascripts 添加特定于 Controller 的 javascript?

jquery - 日历表 css 问题

html - 子内容不随背景 CSS 缩放

javascript - 防止整页在 load() 时向上滚动

javascript - Protractor - MouseMove 不支持 Firefox

JavaScript - 文档 : getElemById() 内的 iframe

html - 使容器在包裹时收缩以适合子元素

html - 为什么我的 div 不能并排放置?