如何在extjs中包装长的radiobutton标签

问题描述 投票:1回答:2

我上面的单选按钮包裹标签,但它没有正确对齐。它应该位于顶部第一个文本的正下方。我是否需要设置配置才能使标签正确包装。

extjs4.1 radiobuttonlist
2个回答
0
投票

我很确定没有配置来做到这一点。唯一合理的方法是摆弄CSS - How to align checkboxes and their labels consistently cross-browsers

+在当前版本(4.2.1。)中,有一个错误,它将整个标签文本包装在收音机(see here)下。


0
投票

通过查看ExtJS 6实现的内容。您可以在ExtJS 4.2.1上使用此CSS覆盖:

.x-form-cb-label-after {
    display: inline-block;
    padding-left: 17px;
    margin: 4px 0 0 0;
}
.x-form-cb {
    margin-top: 5px;
    position: absolute;
}

并完成这个:enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.