北京時(shí)間2017年8月12日,Bootstrap 4 的首個(gè) Beta 版終于發(fā)布了。此次Beta版本距離上次發(fā)布 4.0 的最后一個(gè) alpha 版已經(jīng)過(guò)去了 7 個(gè)月。
該版本取消將 Normalize.css 作為依賴關(guān)系,而是 fork 其中的一部分并和 Bootstrap 自家的 Reboot 混合,以獲得更穩(wěn)定的標(biāo)準(zhǔn)化方法。還對(duì)導(dǎo)航、網(wǎng)格進(jìn)行了改進(jìn)以及對(duì) Flexbox 進(jìn)行一些兼容性的處理。
此外,該版本將 jQuery 和 Popper 移動(dòng)到了 peerDependencies ,因?yàn)樗鼈儾皇?Bootstrap 每個(gè)部分所要求的。往下閱讀更多的更新內(nèi)容。
值得關(guān)注的更新:
- Dropped Normalize.css as a dependency, forking some of it and remixing it with our own Reboot for a more stable normalization approach.
- Update navbar responsive behaviors to be mobile first, use a new class name .navbar-expandinstead of .navbar-toggleable, remove toggler position modifiers (relies on flex utils now), and fix a handful of bugs.
- Stabilize some grid behaviors and update the docs.
- Updated the grid to drop push, pull, and offset in favor of new .order- modifiers and margin utilities.
- Renamed tons of variables (see #22414 and #22092) for a more consistent naming scheme.
- Removed remaining cursor: pointers to restore browser defaults and better indicate actions vs hyperlinks.
- Renamed flexbox order utilities to better match utility naming scheme of .property-value.
- Restored Alpha 5's placement of _custom.scss in our import order.
- Rewrote display and responsive utilities to de-dupe a bunch of functionality.
- Removed Gruntfile and docs from package manager builds.
- Overhauled our color system with new Sass maps, variables, classes, and component variants.
- Updated browser support to bring ranges up to more recent versions.
- Added a bash script for linting unused variables.
- Moved jQuery and Popper to peerDependencies as they're not requirements for every part of Bootstrap.
點(diǎn)此查看完整的更新說(shuō)明。
下載地址
以上便是小編為您帶來(lái)的Bootstrap4的最新消息,關(guān)注W3Cschool官網(wǎng),我們將持續(xù)為您帶來(lái)最新最前沿的技術(shù)訊息!
更多建議: