危险不再适用于Bootstrap v4 beta? [英] has-danger no longer working on Bootstrap v4 beta?
本文介绍了危险不再适用于Bootstrap v4 beta?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据引导迁移指南:
将.has-error重命名为.has-danger.
Renamed .has-error to .has-danger.
但是,这似乎不起作用.边框和文字未上色.
However, that doesn't seem to work. Border and text has not been coloured.
例如:
<div class="form-group has-danger">
<label class="form-control-label" for="inputDanger1">Input with danger</label>
<input type="text" class="form-control form-control-danger" id="inputDanger1">
<div class="form-control-feedback">Sorry, that username's taken. Try another?</div>
<small class="form-text text-muted">Example help text that remains unchanged.</small>
</div>
演示:
https://jsfiddle.net/uLa0spfm/
推荐答案
由于Bootstrap 4仍处于Beta版,因此许多迁移文档是验证在Beta中已更改,并且has-danger
不再存在.
Being that Bootstrap 4 is still in Beta, much of the migration documentation is not in sync with actual releases. Validation has changed in beta, and has-danger
no longer exists.
这篇关于危险不再适用于Bootstrap v4 beta?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文