css - 在 1 行 : 上获取标签和单选按钮

标签 css radio-button alignment label

<分区>

Possible Duplicate:
Radio buttons and label to display in same line

我有 3 个标签和单选按钮,我想放在 1 行上:

我现在得到的是:

Spoortoegang
Uit
radiobutton
Aan
radiobutton

我想要的是:

Spoortoegang Uit radiobutton Aan radiobutton

我的代码是:

<div ><p>Spoortoegang</p><label for="no">Uit;<input dojoType="dijit.form.RadioButton"   id="valSR" name="group1" checked="checked" onchange='POI(this);' value="Show" type="radio"/>    </label>
<label for="yes">Aan;<input dojoType="dijit.form.RadioButton" id="valSlope" name="group1"   value="Hide" onchange='POI(this)' type="radio"/></label></div>

最佳答案

在CSS中为所有元素添加“float: left”

关于css - 在 1 行 : 上获取标签和单选按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13526720/

上一篇:iphone - 文本消失在 iphone 上改变方向

下一篇:javascript - scrollLeft 使用 -webkit-overflow-scrolling : touch 自动返回到旧位置

相关文章:

css - 响应式 css 相邻圆圈,里面有文字,上面有文字居中

css - 控制虚线边框笔划长度和笔划间距

html - 在链接中的一行或两行上垂直对齐文本

css - 我怎样才能水平居中这个动画?

javascript - 难以对齐 div

javascript - 更改标题标签(选项卡)背景颜色

javascript - Meteor,向单选按钮添加事件会禁用它们

jQuery 无法点击单选按钮

javascript - 使用构造的变量名称遍历表单上的单选按钮

html - 将 Div 水平和垂直居中