gpt4 book ai didi

html - 如何让文本显示在复选框的左侧?

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

假设我有一个复选框,例如

<input type="checkbox">1</input>

它会像这样显示:

enter image description here

我是否可以让它出现在文本框的左侧,例如:

我需要做什么?

enter image description here

最佳答案

试试这个:

<label>1 <input type="checkbox" /></label>

关于html - 如何让文本显示在复选框的左侧?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17429153/

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