Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个字段集,其中包含许多动态添加和删除的嵌套字段集。
但是,我希望嵌套的字段集以类似于表单的方式显示,例如元素之间没有太多空间。但是,每个字段集之间都有一个差距,我不知道如何删除它。我尝试在父字段集上使用 bodystyle 但没有效果。
我正在使用这种方法,因为它更容易在表单中添加/删除“行”。
您需要在每个嵌套字段集上设置 bodyStyle,而不是在父字段集上。
取决于父字段集的布局,但尝试bodyStyle:'padding:0px'每个嵌套字段集。在父字段集上,您设置defaults:{bodyStyle:'padding:0px'}
bodyStyle:'padding:0px'
defaults:{bodyStyle:'padding:0px'}