[聚合文章] Bootstrap v4.0.0-beta.3 发布,Web 前端 UI 框架

CSS 2017-12-29 22 阅读

Bootstrap v4.0.0-beta.3 发布了,Bootstrap是快速开发Web应用程序的前端工具包。它是一个CSS和HTML的集合,它使用了最新的浏览器技术,给你的Web开发提供了时尚的版式,表单,buttons,表格,网格系统等等。

主要更新内容如下:

  • 重写本机和自定义检查控件。Both browser default and custom checkboxes and radios now have simpler markup after removing the  <input> from the  <label> . Now, all checkboxes and radios have a parent  <div> and sibling  <input> and  <label> pair. This is essential for form validation and disabled inputs because we can use the input's state to style the label.

    In addition, custom checkbox and radio elements no longer have a .custom-control-indicator . This is generated from the new  .custom-control-label .

  • 重写输入组: input-group-{prepend|append}  类,新的方法允许我们支持输入组中的验证样式和消息,同时也增加了对自定义选择,自定义文件输入和多个.form-controls的支持。

  • 响应表也是父类,以避免更改<table>的显示时的可访问性问题。

  • 删除 .col-form-legend 类,将其样式合并到 .col-form-label 类中。

其他:

  • Restored cursor: pointer to non-disabled links, buttons,  .close , navbar toggler, and pagination links.

  • Added a new vertically centered modal option with .modal-dialog-centered .

  • Added new dropleft and dropright variants for dropdowns in #23860 .

  • Our npm package no longer includes any files other than our source and dist JavaScript and CSS files. If you previously relied on our running our scripts via the node_modules folder, you'll need to update your build tools.

  • Print styles have moved to bottom of the import stack to properly override styles.

更新详情请看 这里

下载地址:

注:本文内容来自互联网,旨在为开发者提供分享、交流的平台。如有涉及文章版权等事宜,请你联系站长进行处理。