gpt4 book ai didi

html - 如何使用 radio 插件为错误消息设计输入样式 - twitter bootstrap

转载 作者:搜寻专家 更新时间:2023-10-31 08:32:30 27 4
gpt4 key购买 nike

我正在尝试使用 radio 插件为错误消息 (.help-block) 设置输入字段的样式。没有 radio addons 也能正常工作.但是使用插件,文本跳转到输入字段下的新行。

看起来像这样

enter image description here

HTML

<div class="input-group has-error">
<span class="input-group-addon">
<input type="radio" name="answer" value="a">
</span>
<input type="text" class="form-control" placeholder="Your answer here..." name="a" id="a">
<span class="help-block">The a field is required</span>
</div>

那么bootstrap 3提供的我该怎么办

最佳答案

我做错了。

<div class="form-group has-error">
<label for="a">Answer A</label>
<div class="input-group ">
<span class="input-group-addon">
<input type="radio" name="answer" value="a">
</span>
<input type="text" class="form-control" placeholder="Your answer here..." name="a" id="a">
</div>
<span class="help-block">The a field is required.</span>
</div>

enter image description here

关于html - 如何使用 radio 插件为错误消息设计输入样式 - twitter bootstrap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20612025/

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