bootstrap 4 中的输入组插件
input-group-addon in bootstrap 4
我正在开始一个新项目,我决定更新到 Bootstrap 4. 创建表单 我意识到 class 'input-group-addon' 无法正常工作。
我不明白为什么,但是当我使用 bootstrap-4-alpha 时它工作得很好。 bootstrap.css、bootstrap-grid.css 和 bootstrap-reboot.css 均未提及此 class.
我错过了什么吗?他们删除了吗?
我不太明白 bootstrap、bootstrap-grid 和 bootstrap-reboot 之间的区别,但我想这是一个不同的问题。
Bootstrap 4 alpha 现在几乎是恐龙时代了。但这是您问题的答案:
We’ve dropped .input-group-addon
and .input-group-btn
for two new classes, .input-group-prepend
and .input-group-append
. You must explicitly use an append or a prepend now, simplifying much of our CSS. Within an append or prepend, place your buttons as they would exist anywhere else, but wrap text in .input-group-text
.
参考:
https://getbootstrap.com/docs/4.0/migration/#input-groups
和:
我正在开始一个新项目,我决定更新到 Bootstrap 4. 创建表单 我意识到 class 'input-group-addon' 无法正常工作。
我不明白为什么,但是当我使用 bootstrap-4-alpha 时它工作得很好。 bootstrap.css、bootstrap-grid.css 和 bootstrap-reboot.css 均未提及此 class.
我错过了什么吗?他们删除了吗?
我不太明白 bootstrap、bootstrap-grid 和 bootstrap-reboot 之间的区别,但我想这是一个不同的问题。
Bootstrap 4 alpha 现在几乎是恐龙时代了。但这是您问题的答案:
We’ve dropped
.input-group-addon
and.input-group-btn
for two new classes,.input-group-prepend
and.input-group-append
. You must explicitly use an append or a prepend now, simplifying much of our CSS. Within an append or prepend, place your buttons as they would exist anywhere else, but wrap text in.input-group-text
.
参考:
https://getbootstrap.com/docs/4.0/migration/#input-groups
和: