Material angular布局单选框如下所示:
o Apple
o Banana
我想要颠倒过来
Apple o
Banana o
md单选按钮具有两个组件,
div容器“md-class=”,
和
div标签“md-class=”。
容器持有按钮,而标签持有标签。
我似乎不能调换这些div的位置。当我尝试将md-container向右浮动时,它会超出md-单选按钮的范围。
我如何交换这两个位置,使用子组件上的浮动而不中断父单选按钮,或者其他方式?
谢谢
我编写了下面的HTML来显示两个单选按钮和一些文本。
<input id="radio1" type="radio" checked="checked"/>Create the application name <br/>
<input id="radio2" type="radio"/> Create the Source name
我的问题是单选按钮和文本没有正确对齐。单选按钮显示在文本的稍下方。如何将单选按钮和文本对齐到同一行并正确对齐?
我有一个使用Bootstrap 3的网页。在这个网页中,我显示了一些单选按钮。我的单选按钮是样式化的,所以我在其中添加了一个元素。尽管如此,这些单选按钮的标签还是相当长。此时,它们的渲染方式如下:
• This is my label. It can be rather long and
wrap to the next line. There could be four or
even more lines.
但是,我希望它们像这样呈现:
• This is my label. It can be rather long and
wrap to the next line. There
我希望我的单选按钮和它的标签在同一行上。我能够做到这一点。但是当右边的标签很大时,它需要用特定的格式包装。我如何做到这一点。我可以使用宽度来实现,还有其他可用的选项吗?
<div class='wrapper'>
<input type='radio'>
<label class='label'>This is a very big text and should wrap as attached in image</label>