gpt4 book ai didi

html - 在 Bootstrap 中创建和样式化输入作为句子的一部分?

转载 作者:太空宇宙 更新时间:2023-11-04 11:10:53 25 4
gpt4 key购买 nike

我想使用 Bootstrap 创建一个外语教学网站。该站点往往包含丰富的测验。我一直在创建非常适合文本的带下划线的输入字段。我搜索了 Stackoverflow 和 Google,但没有找到任何有用的信息。下图显示了我想要达到的效果:<input>样式为一行,插入句子中间。然后我会使用 Java/backend/sth检查答案。我该怎么做?

Input as line amid sentence

最佳答案

对于输入框的符号,您可以执行以下操作。这些是内联样式,但您可以将它们移出到 CSS 文件中。

<div>
<div style="margin-bottom: 4px;">
<label>Herr Lang</label> <input style="background-color: transparent; border-style: solid; border-width: 0px 0px 1px 0px; border-color: darkred;" value="" id="answer1"><label>bereits aus...</label>
</div>
</div>

JSFiddle is here

关于html - 在 Bootstrap 中创建和样式化输入作为句子的一部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33634254/

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