gpt4 book ai didi

html - 错误文本不是红色

转载 作者:太空宇宙 更新时间:2023-11-03 23:45:56 24 4
gpt4 key购买 nike

我有以下 html 输出:

<div class="clearfix has-error">
<label for="id_password" class="control-label">Password</label>
<input class="form-control" id="id_password" name="password" type="password">
<span class="help-inline">This field is required</span>
</div>

inputBox 本身及其标题(标签)是红色的,但错误文本不是。根据文档,它应该是。我想知道为什么以及如何解决这个问题?

Twitter Bootstrap 3.0.2

最佳答案

我想你正在找这个

<div class="clearfix has-error">
<label for="id_password" class="control-label">Password</label>
<input class="form-control" id="id_password" name="password" type="password">
<span class="help-block">This field is required</span>
</div>

这将为文本添加红色。添加 .help-block 类而不是 .help-inline。

关于html - 错误文本不是红色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21568861/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com