gpt4 book ai didi

html - 如何在文本框下呈现文本?

转载 作者:太空宇宙 更新时间:2023-11-04 13:39:40 24 4
gpt4 key购买 nike

在 html/css 中制作类似的东西

alt text

最佳答案

您可以通过将每个输入和标签包装在 div 元素中并 float div 来做您想做的事。

Example Here

HTML:

<div class="boxwrap">
<div>
<input type="text" size="6" />
<h5>label1</h5>
</div>
<div>
<input type="text" size="6" />
<h5>label2</h5>
</div>
<div>
<input type="text" size="6" />
<h5>label3</h5>
</div>
</div>
<div class="clearfloat"></div>

CSS:

div.boxwrap div {
float: left ;
}
div.boxwrap div h5 {
text-align: center ;
}
div.clearfloat {
clear: both ;
}

关于html - 如何在文本框下呈现文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3843547/

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