从 Bootstrap 3.0.2 迁移到 3.4.1

发布于 2025-01-17 23:52:58 字数 218 浏览 5 评论 0原文

我搜索了谷歌但找不到任何迁移指南。

我正在开发一个使用 Bootstrap 3.0.2 的网站,由于 <3.4.1 中发现的漏洞,我将其升级到 Bootstrap 3.4.1。我知道我可能需要对我的代码进行重大修改才能迁移它。

我只是想知道使用 bootstrap 3.4.1 是否安全?或者我应该迁移到 v4? 我错过了 bootstrap v3.0.2 到 3.4.1 的迁移指南吗?

I searched google but couldn't find any migration guide.

I'm working on a website that uses Bootstrap 3.0.2, and I am upgrading it to Bootstrap 3.4.1 because of the vulnerabilities found in <3.4.1. I know I may have to give my code a major revamp to migrate it.

I just want to know whether it's safe to use bootstrap 3.4.1? Or should I migrate to v4 instead?
Is there a migration guide for bootstrap v3.0.2 to 3.4.1 that I missed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

满天都是小星星 2025-01-24 23:52:58

如果您确实决定升级到 v4,我建议您直接升级到 v5,即最新版本。它更加稳定,没有那么多 JS(尽管 v4 非常好)。

v4 和 v5 实际上并没有多大区别,但 v3 和 v4 之间的差异却很大。大多数时候,这取决于属性的详细方式。例如,在 v3 导航栏中,其中两个属性是 data-toggledata-target。从 v4 开始,这些变为 data-bs-toggledata-bs-target

我怀疑这些改变将是最重要的事情,否则可能不会像你想象的那么久。

If you do decide to go forward to v4 I would recommend going straight to v5 instead, the latest version. It is a lot more stable with not as much JS (even though v4 was very good).

v4 and v5 are not that different really, but the differences between v3 and v4 are huge. Most of the time this is coming down to the way attributes are detailed. In v3 navbar for example two of the attributes were data-toggle and data-target. From v4 onwards these became data-bs-toggle and data-bs-target.

I suspect those changes will be the biggest thing to do, otherwise it might not take as long as you think.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文