gpt4 book ai didi

html - 多个单选按钮和相应的标签显示在嵌套 div 的同一行中

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

我查看了这篇文章,因为这正是我想要实现的目标:Radio Button and Label to display in same line.

但斗争仍在继续...这是我的布局(前 3 列)和我希望的布局(最后两列)。请忽略轮廓框。绘制这些只是为了标记 div。

我有两到三个单选按钮需要位于同一行,如下图所示。这些单选按钮它们的标题应该在一个 div 中并嵌套在包含单选按钮和另一个 html 选择器(例如容量)的主 div 中我试着给这个 div,这样单选按钮就可以水平排成一行。但它不起作用。

enter image description here

jsFiddle for html and css.


从上述类中删除 float:leftwidthheight 后。如您所见,“选择”按钮不再对齐。

enter image description here

最佳答案

.fl1 em 中删除 float: left;

并从 #bookingForm 输入中删除 widthheight,#bookingForm textarea 将解决您的问题。

检查 Fiddle Here.

关于html - 多个单选按钮和相应的标签显示在嵌套 div 的同一行中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30449465/

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